Template functions, can we make it more simple?

Dicebot public at dicebot.lv
Fri Aug 2 14:11:13 PDT 2013


On Friday, 2 August 2013 at 20:50:00 UTC, SteveGuo wrote:
> But I mean if the syntax can be more simple?
>
> auto Add(A, B)(A a, B b); // type A, B appears twice
>
> // Can we just make it more simple?
> auto Add(a, b)
> {
> }

Question is "should we"? It creates syntax ambiguity (a and b can 
be already existing types) and does not really improve language.


More information about the Digitalmars-d mailing list