Open ItsDeltin opened 3 years ago
It should be simple enough to give each node an associated property WillGenerateActions
and then recursively check all of its child nodes; I can look into this later and see if it's viable
The const () => void
syntax was added in v2.0.
My proposed syntax for inline lambdas would be:
const (parameterTypes) => returnType
Ex:An issue that may arise from this is when the lambda is usage in reevaluation. Currently OSTW does not have a way to determine if an expression will generate actions in the semantics stage.
If a way to check if actions will be generated is implemented, then adding an alternative syntax may be a good idea: