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
Currently, we place a declaration both on the AST property declarations directly as well as indirectly through the statements property and a DeclarationStatement. This could potentially be a bad idea, since the AST should be a tree, not a graph.
Also for this discussion: Currently we model a a: Int or a simple a (the statement, not the expression) as an assignment with no rhs. This works sort-of and the assignment expression will also add a declaration, however the question would be whether we want to directly translate this into a declaration statement / variable declaration.
This is just a reminder to a discussion between @oxisto and myself: 9d02f6c
The text was updated successfully, but these errors were encountered: