On Tuesday, 10 April 2018 at 01:21:07 UTC, Chris Katko wrote:
One more note: It seems like this would be heaven for trying
out new language features without having to "manually" add them
into the compiler first. By hijacking the syntax to AST stage,
we can add new constructs with real-functioning code, and have
others evaluate themselves and unit test them without having to
"imagine" whether the code would actually work. It'd be on a
real binary, using a real (unmodified!) compiler.
And you can also have your own "in-house" specializations.
Which is no different than expecting people to use your API.
Some API's have method chaining, and you use it. Some have
pass-by-name, and you use it.
See previous forum thread on the topic, with Walter chiming in a
bit too:
https://forum.dlang.org/thread/[email protected]