Currently, Scala-AM contains a lot of different classes and traits, representing values, environments, pointers, ...
(Almost) all of these classes implement a toString method, allowing structured output (e.g. a lambda is printed as (lambda (...) ...) ). However, the toString definitions of other internal structures are not very structured. Hence, printed output is/may be difficult to interpret and use (for example, for debugging purposes).
Therefore, we should make a clear string representation of all components, so that is is easier to interpret the output.
Currently, Scala-AM contains a lot of different classes and traits, representing values, environments, pointers, ... (Almost) all of these classes implement a toString method, allowing structured output (e.g. a lambda is printed as (lambda (...) ...) ). However, the toString definitions of other internal structures are not very structured. Hence, printed output is/may be difficult to interpret and use (for example, for debugging purposes).
Therefore, we should make a clear string representation of all components, so that is is easier to interpret the output.