Which language constructs could be done as a library if we accept some breaking changes?
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Thu Dec 2 15:26:51 UTC 2021
On Thursday, 2 December 2021 at 14:38:21 UTC, Paul Backus wrote:
> The syntax used for macro expansion is a trivial detail. Rust
> has "real" AST macros, and they also use `!` for expansion
> (`vec!`, `println!`, etc.).
It isn't trivial if you can match on anything you want. If you
can match on "if (x==123)" etc then you are opening Pandora's box.
Of course, that was also never suggested in the thread. Only
adjustments to current semantics were suggested, not a new
language-family like 12345swordy implied…
More information about the Digitalmars-d