foo!(bar) ==> foo{bar}

Sandeep K sandeep.iitkgpMEOW at gmail.com
Tue Oct 7 21:32:43 PDT 2008


Andrei Alexandrescu Wrote:

> Sandeep K wrote:
> > I don't like {} at all. {} should be for function bodies, lamdbas.
> 
>      struct S { int a, b; }
>      S s = { 1, 2 };

:)

Isn't "T." terse enough? I felt it is more elegant than using special syntax to disambiguate which function we are referring to. Anyways, I wouldn't know if this would have other problems such as clashing with the template parameter in template definitions. 



More information about the Digitalmars-d mailing list