Next in thread → Next in month →

Re: [relax-ng] Compact syntax proposal: allow redundant , and & and |

From
John Cowan <>
Date
2002-07-15T12:30:14+00:00
ID
Thread
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                                <>     
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"
Next in thread → Next in month →