Re: [q-lang-users] A proposal to adopt Python tuple syntax
Brought to you by:
agraef
From: John.Cowan <jc...@re...> - 2005-06-27 14:02:28
|
Albert Graef scripsit: > >A minor point is whether (,) and [,] will become legal ways to write the > >empty tuple and list respectively. I don't much care either way. > > Why would anyone want to have this? I don't see what this would buy. It's a matter of how you conceptualize the optional trailing comma in tuples other than 1-tuples. If the rule is "a comma is permitted after the last element", then "(,)" is illegal. If the rule is "a comma is permitted before the right parenthesis", then "(,)" is legal and means the same as "()". (And the same reasoning for lists.) As I say, I don't care how this one is decided. -- First known example of political correctness: John Cowan After Nurhachi had united all the other http://www.reutershealth.com Jurchen tribes under the leadership of the http://www.ccil.org/~cowan Manchus, his successor Abahai (1592-1643) jc...@re... issued an order that the name Jurchen should --S. Robert Ramsey, be banned, and from then on, they were all The Languages of China to be called Manchus. |