Template instantiation syntax

Walter Bright newshound1 at digitalmars.com
Fri Oct 10 15:03:06 PDT 2008


bearophile wrote:
> And what's the advantage of such special casing of the syntax? Just
> to remove 2 chars () that improves clarity?

Yes. I think small things like this can make a big difference. Most 
template instantiations are one simple argument.

> I am for using shorter
> syntaxes in D, but not in that way.

Why not?

> If you want to reduce the length
> of D programs make the semicolons optional,

That would seriously damage the compiler's ability to identify, 
diagnose, and recover from syntax errors correctly.

> introduce eager and lazy
> array comprehensions, try to introduce a lambda syntax like the C#
> one, etc.




More information about the Digitalmars-d mailing list