D parsing

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Nov 10 14:43:08 PST 2013


On 11/10/13 12:38 PM, Timothee Cour wrote:
> On Sun, Nov 10, 2013 at 12:27 PM, Jacob Carlborg <doob at me.com
> <mailto:doob at me.com>> wrote:
>
>     On 2013-11-10 19:44, deadalnix wrote:
>
>         It is also a given that many feature could have been avoided in the
>         first place given that one.
>
>
>     I agree. It seems at least a couple of features could have been
>     implemented using AST macros instead.
>
>     --
>     /Jacob Carlborg
>
>
> I agree; eg, just to name 2 features that I proposed that could be
> simply implemented via AST macros as Jacob said:
> * [proposal: a new string litteral to embed variables in a string
> <http://forum.dlang.org/post/mailman.94.1383254681.9546.digitalmars-d@puremagic.com>
> http://forum.dlang.org/post/mailman.94.1383254681.9546.digitalmars-d@puremagic.com]
> * [Re: feature request: __ARGS__ for logging (cf __FILE__, __LINE__,
> __FUNC___ http://forum.dlang.org/post/kegmp0$30dn$1@digitalmars.com]
>
> It seems we could even get rid of __FILE__,__LINE__,__MODULE__ with AST
> macros.

This would be a very small advantage. The special variables hardly cause 
any trouble.

Andrei



More information about the Digitalmars-d mailing list