Template instantiation syntax
bearophile
bearophileHUGS at lycos.com
Fri Oct 10 14:29:00 PDT 2008
Walter Bright:
> Also, we're going to try using ! for single argument syntax, as in:
> foo!bar is same as foo!(bar)
> foo!10 is same as foo!(10)
And what's the advantage of such special casing of the syntax? Just to remove 2 chars () that improves clarity? I am for using shorter syntaxes in D, but not in that way. If you want to reduce the length of D programs make the semicolons optional, introduce eager and lazy array comprehensions, try to introduce a lambda syntax like the C# one, etc.
Bye,
bearophile
More information about the Digitalmars-d
mailing list