...
This AST Template feature allows you to pass parameters into the AstBuilder. Similar to how a $ works in GString interpolation, there needs to be a way to bind a variable from the enclosing scope into an AstBuilder closure. The syntax proposed is to use oxford brackets: var. An AstBuilder closure containing GEP 4 - AstBuilder AST Templates will have the variable within the brackets bound in.
...
- Lisp uses ´ and ,
- Template Haskell uses something similar to oxford brackets but with slightly different semantics
- Boo uses uses GEP 4 - AstBuilder AST Templates and $ but with slightly different semantics
- A $ was considered but cannot be used as it is already a meaningful identifier.
...
