On Tuesday, 13 December 2016 at 12:58:42 UTC, Swoorup Joshi wrote:
On Tuesday, 13 December 2016 at 01:03:54 UTC, Ignacious wrote:Would it be difficult to implement the following, or something with similar capabilities, as a patch to dmd?[...]Isn't this what string mixin is for
Not really, since you don't get a tree of each expression nodes. It's more like macros. Pretty similar to what Nim does.
http://nim-lang.org/docs/macros.html