Should we deprecate comma?

John Colvin john.loughran.colvin at gmail.com
Mon Mar 24 05:47:45 PDT 2014


On Monday, 24 March 2014 at 12:31:16 UTC, Russel Winder wrote:
> On Mon, 2014-03-24 at 12:20 +0000, Marc =?UTF-8?B?U2Now7x0eiI=?=
> @puremagic.com wrote:
> […]
>> Or, if you really want to distinguish them, this would work:
>> 
>> (1,2)    two-element tuple
>> (1,)     one-element tuple
>> (1)      simple expression
>> (,)      empty tuple
>
> The Python solution is:
>
> (1, 2)  two-element tuple
> (1,)  one-element tuple
> (1)  simple expression
> ()  empty tuple

I'm used to this now, but initially it stuck out like a sore 
thumb for a language that's supposed to be noob friendly. It gets 
the job done I suppose.


More information about the Digitalmars-d mailing list