foo!(bar) ==> foo{bar}
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Tue Oct 7 21:12:31 PDT 2008
Walter Bright wrote:
> Tomas Lindquist Olsen wrote:
>> I just think it's funny that this has even come up and is getting
>> serious consideration. Walter usually don't like changing the color of
>> his shed! And D coders are already used to !()
>
> As Andrei said, I don't write a lot of templates. He does.
>
> What I'd really like are those funky « and » quote characters. But alas,
> few keyboards have them on it. (I inserted them here by cutting and
> pasting from somewhere else, hardly very practical. I could modify my
> text editor to make it easy, but what about every other ascii text
> editor people use?)
That's simple. I saw that at work in a nice Smalltalk environment called
Squeak. People wrote a <- b and the IDE transformed in real time the
"<-" into a nice arrow.
The compiler accepts both notations. That way the code looks super nice
and (if using Template{arguments}) is also easy to enter. Plus it
doesn't look half bad without the embellishment either.
Andrei
More information about the Digitalmars-d
mailing list