Tuple literal syntax

Olivier Pisano olivier.pisano at laposte.net
Thu Oct 7 07:54:59 PDT 2010


Le 07/10/2010 09:44, Juanjo Alvarez a écrit :
> On Wed, 06 Oct 2010 23:04:35 -0700, Walter Bright
> <newshound2 at digitalmars.com> wrote:
>> (a,0)[0]
>
>
>
>
>> as how a user could generate a tuple of 1. Awkward, sure, but like
> I said, I
>> think this would be rare.
>
> Python uses:
>
> (5,)
> Which is a lot better IMHO

Vote++;


More information about the Digitalmars-d mailing list