DIP 50 - AST macros
Walter Bright
newshound2 at digitalmars.com
Wed Nov 13 17:38:31 PST 2013
On 11/13/2013 5:14 PM, deadalnix wrote:
> My very first project in D involved quite a lot of them. So I very aware of what
> they are.
>
> The whole idea is to be able to extends that to statement and declarations.
My question about that is just what problem is this trying to solve, and why
that problem cannot be reformulated in terms of expression templates?
I.e. we shouldn't be adding things to D just because they are cool. They need to
solve a problem that is fairly commonplace and too painful to solve with
existing mechanisms. The larger the proposed language enhancement is, the more
commonplace and and painful the problems must be that it purports to solve.
> Making what expression templates can do is simply a side effect so to speak.
More information about the Digitalmars-d
mailing list