C++ Resyntaxed

bearophile bearophileHUGS at lycos.com
Thu Mar 13 11:13:20 PDT 2008


renoX:
> Easy: use func param -> return for functions and delegate param -> return, not just -> alone (or maybe -> alone is for functions)..

Maybe this for functions
int -> float
and this for delegates:
int => float
And maybe this one for closures (but that syntax for closures may suffice) :-)
int ==> float

It's shorter :-)
Note that the same ->/=> syntax can be used to define anonymous functions too (it's a syntax like C# one).

Bye,
bearophile



More information about the Digitalmars-d mailing list