[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: [relax-ng] Compact syntax proposal: allow redundant , and & and |
James Clark scripsit:
> Given that the
> benefits of allowing trailing commas are arguable -- the designers of C++
> and Java, for example, chose not to allow them -- I would be inclined not to
> adopt this proposal.
Java does, indeed, allow trailing commas in array initializers: JLS 10.6.
Although I cannot cite chapter and verse, the same construct appears
in several C++ grammars I have consulted.
I agree that allowing trailing commas outside () {} [] is a Bad Thing.
--
John Cowan <jcowan@reutershealth.com>
http://www.reutershealth.com http://www.ccil.org/~cowan
Yakka foob mog. Grug pubbawup zink wattoom gazork. Chumble spuzz.
-- Calvin, giving Newton's First Law "in his own words"
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC