DIP 50 - AST macros
Shammah Chancellor
anonymous at coward.com
Sun Nov 10 19:08:14 PST 2013
On 2013-11-11 03:04:34 +0000, Shammah Chancellor said:
> On 2013-11-10 21:20:30 +0000, Jacob Carlborg said:
>
>> I've been thinking quite long of how AST macros could look like in D.
>> I've been posting my vision of AST macros here in the newsgroup a
>> couple of times already. I've now been asked to create a DIP out of it,
>> so here it is:
>>
>> http://wiki.dlang.org/DIP50
>
> Not a huge fan of the syntax, but I think it's a step in the right
> direction away from string mixins.
>
> R/
> Shammah
I think this would gain a lot more traction if someone wrote an
std.expressions which produced workable code from a AST. At that
point, it's just for the D-frontend to parse code into said
std.expressions.
The .NET expressions framework might servce as some insperation.
R/
Shammah
More information about the Digitalmars-d
mailing list