What is the stance on partial initializers when declaring multiplevariables of the same type?

bearophile bearophileHUGS at lycos.com
Thu Jul 21 14:40:08 PDT 2011


Nick Sabalausky:

> Crazy, nutty, wacky idea...
> 
> float (a, b, c) = 0.0;

I'd like some syntax sugar for tuples in D (especially for their unpacking), that syntax goes against one of the most natural ways to define tuples. So it's not a good idea.

Bye,
bearophile


More information about the Digitalmars-d mailing list