DMD 1.035 and 2.019 releases

Jarrett Billingsley jarrett.billingsley at gmail.com
Sat Sep 6 12:03:00 PDT 2008


On Sat, Sep 6, 2008 at 8:38 AM, Russell Lewis
<webmaster at villagersonline.com> wrote:
> 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.
>

I'll agree with that and reiterate that if we could have named
parameters I could care less about having better struct literals.


More information about the Digitalmars-d-announce mailing list