Should we deprecate comma?

Russel Winder russel at winder.org.uk
Mon Mar 24 05:31:05 PDT 2014


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
-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder



More information about the Digitalmars-d mailing list