DIP 50 - AST macros
Zsombor Barna
belzurix at sch.bme.hu
Sun Nov 17 01:54:43 PST 2013
On Sunday, 17 November 2013 at 09:13:04 UTC, Walter Bright wrote:
> On 11/14/2013 2:06 PM, deadalnix wrote:
>> You can't argue that string mixin is good while AST macro is
>> bad.
>
> True, but you also cannot argue that since D has string mixins
> it must also have AST macros.
>
> What macros do is bless, encourage, and make inevitable a
> particularly abusive style of programming. D already has super
> powerful metaprogramming abilities that we are far from
> exploring the limits of. I don't think we should be adding on
> even more that experience has shown goes quickly out of control.
Yeah, you are right, but I doubt anybody would use macros in
production code without considering much less powerful constructs
of the language to solve the problem. In hobby projects, I don't
mind if create spaghetti code while experimenting.
More information about the Digitalmars-d
mailing list