Template instantiation syntax
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sat Oct 11 15:56:52 PDT 2008
bearophile wrote:
> Robert Fraser:
>> I think a context-free grammar is a big win all-around.
>
> Such things have some disadvantages too, like not allowing (?) a syntax like, for example:
> foreach (i, x in something) {...}
>
> Instead of the current more error-prone:
> foreach (i, x; something) {...}
Both can be done with a CFG.
Andrei
More information about the Digitalmars-d
mailing list