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
The current AST uses the nasty union hack to implement something like a generic type.
This is because at the time of writing the AST, there was no other way of doing things.
In order to allow macros, the AST needs to become more usable, so that we can decide on an accepted format.
deep_copy is just one example of a function that needs to be implemented per Node.
Right now this is done by a few huge switch cases, which definitely needs to go in the future.
The text was updated successfully, but these errors were encountered:
The current AST uses the nasty union hack to implement something like a generic type.
This is because at the time of writing the AST, there was no other way of doing things.
In order to allow macros, the AST needs to become more usable, so that we can decide on an accepted format.
In theory you'd have something like this:
deep_copy
is just one example of a function that needs to be implemented per Node.Right now this is done by a few huge switch cases, which definitely needs to go in the future.
The text was updated successfully, but these errors were encountered: