haxpression
haxpression copied to clipboard
macro expressions could make quotes not needed
With some macro love, the example:
var expr = Parser.parse('1 + x / y');
Could become:
var expr = Parser.parse(1 + x / y);
Obviously this would apply to expression only known at compile time.
The not so obvious advantage is that you can check syntactic correctness at compile time.