Which patches/mods exists for current versions of the DMD parser?
via Digitalmars-d
digitalmars-d at puremagic.com
Thu Sep 11 06:02:51 PDT 2014
On Tuesday, 9 September 2014 at 13:15:56 UTC, AsmMan wrote:
>> in : templatename‹params›
>> out: templatename!(params)
>
> Why dou want to turn it into C++'s style? it will slow down the
> compiler time because we need to look at symbol table the type
Good question. I look at my D1 code and it is visually pleasing
to look at. I look at D2 code and it looks like line noise in
comparison.
This is just an experiment where I implement stuff that is easy
to fix in the existing parser without changing too much. The
ideal solution is to write a completely new parser with a new and
more coherent syntax, but this is sufficient to get some ideas.
I won't know if I think it is a good or bad idea until I have
played with it for several months or so. I want D2 features, but
I also want a clear visual image in my editor.
> I didn't find this one so bad but these symbols are hard to
> type on usual keyboard...
Yeah, but sometimes compact syntax is more important. It is worth
experimenting with it, so I've started with symbols that are
available on my own keyboard although I will do square(), logic
symbols etc if it turns out to be a nice feature.
Again, I can't tell until I've tried it for a while.
More information about the Digitalmars-d
mailing list