DIP 50 - AST macros

Jacob Carlborg doob at me.com
Sun Nov 17 02:41:43 PST 2013


On 2013-11-17 09:18, SomeDude wrote:

> True but you will hardly use myfunction as an extension to the language.
>
> If I understand the issues, I quite understand Walter's reluctance to
> add such a feature. Once you add it, you add the capability to change
> the language, or to create an entirely new language. If you let it, no
> matter how loud you cry, people *will* abuse the feature, and they will
> do it from day one. The C++ templates experiment shows what happens when
> you do that. We don't want to repeat the same mistakes.

We already have templates and operator overloading. Perhaps we should 
remove those, we don't want to take the chance of people abusing them.

> Basically, people want to change the language, but without having to
> discuss their own extensions in the newsgroups. It's sometimes handy,
> but you'll end up with crappy features all over the place.

No, people want a general solution that doesn't require the language to 
be extended each time they come up with a useful feature.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list