foo!(bar) ==> foo{bar}
Tomas Lindquist Olsen
tomas at famolsen.dk
Tue Oct 7 12:36:34 PDT 2008
Vincent Richomme wrote:
> Steven Schveighoffer a écrit :
>>
>> 1. The user comes from a Java/C++/C#/etc. background and has the same
>> initial reaction I had. Then, depending on their personality, they
>> get defensively angry or say, 'oh yeah, that makes a lot of sense!'
>> and are done with it. I'm guessing the latter would be more common.
>>
> I agree I was shocked by the syntax at first glance ... and it still
> very difficult to read D templates. Hope I will get used to it ;-)
> But if you ask lots of developpers what is the meaning of this symbol I
> am quite sure they will never imagine it could be related to templates.
>
>
How is curly braces different here? I think of some scope when I see them, certainly not
template parameters.
I too thought wth? when I first read the D spec, but coming from C++ and having hit the issues
with <> several times it made a lot of sense to do something else.
IMHO {} is not it!
More information about the Digitalmars-d
mailing list