Named return type > Out parameters

xx xx at xx.com
Thu Nov 12 17:42:32 PST 2009


Next in the series of "How about Go's ____":

(int var1, float var2) function();

is much nicer, logical and consistent than:

int function(out float var2);


Of course this requires multiple assignment, but that's another cool thing.




More information about the Digitalmars-d mailing list