You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are different representations of Node object that are useful in different cases:
Something short that just says that this object is a Node with some element (current behavior).
Full AST printout (the current showast function, replicating the input of the @ast macro). This is useful when working with the tree manually, but is technical and can get pretty long.
This can maybe be combined with (1), in that for large printouts we just put an ellipsis like we do for large arrays.
Pretty-printed document (the behaviour of CommonMark). This is useful for users who do not want to be concerned with the technical details of the representation, and also relevant for e.g. rendering docstrings.
We need to decide on which one should be the default output if a Node is returned in the REPL, and how to access the other option.
The text was updated successfully, but these errors were encountered:
There are different representations of
Node
object that are useful in different cases:Something short that just says that this object is a
Node
with some element (current behavior).Full AST printout (the current
showast
function, replicating the input of the@ast
macro). This is useful when working with the tree manually, but is technical and can get pretty long.This can maybe be combined with (1), in that for large printouts we just put an ellipsis like we do for large arrays.
Pretty-printed document (the behaviour of CommonMark). This is useful for users who do not want to be concerned with the technical details of the representation, and also relevant for e.g. rendering docstrings.
We need to decide on which one should be the default output if a
Node
is returned in the REPL, and how to access the other option.The text was updated successfully, but these errors were encountered: