From: Tim Hunter Date: 2002-07-18T02:48:27+09:00 Subject: Re: Syntax "surprise" C allows a trailing comma in initializers: int foo[] = {1,2,3,}; The justification (iirc) was that it made it easier to write programs that generate C language statements. On Wed, 17 Jul 2002 16:42:09 GMT, Brad Cox wrote: >Still, its a shame ruby adopts the same shortcoming as java. > >Its not a language's business to prevent users from writing "smelly" code. > >Long argument lists are common in data initialization contexts, and >misplaced commas a extremely common problem, that's actively >manufactured by this rule. > > @@instance = SomeClass.new( > "127.0.0.1", > 8083, > "hostname.com", > blah, > blah, > whoops, > ); >