DMD 1.035 and 2.019 releases

Russell Lewis webmaster at villagersonline.com
Sat Sep 6 05:38:31 PDT 2008


Jarrett Billingsley wrote:
> q{ is treated more or less as an atomic character.  Put a space
> between them and bam, you have a struct literal.

They made exactly that mistake with C++'s template syntax.  It is one of 
the reasons that D's template syntax is better.

It's an idea that sounds good when you are looking at it from an 
abstract, "yeah we could parse that" direction, but it makes for 
unreadable (and unwritable) code with strange syntax errors that are 
hard to find.


More information about the Digitalmars-d-announce mailing list