Example: void main(char[][] args,) {}
Sweet. How long has this feature been available?
This is allowed for simplicity with generated code, I believe. Makes it a bit easier to generate parameter lists, enumeration enums (darn those other enums), etc. It's been around for as long as I can remember, and hopefully won't ever be 'fixed'.
(In reply to comment #2) > This is allowed for simplicity with generated code, I believe. Makes it a bit > easier to generate parameter lists, enumeration enums (darn those other enums), > etc. > This would make more sense for array literals, because generating them should happen much more often than generating parameter lists. I have no problem with trailing commas, but it's not consistently allowed everywhere.
(In reply to comment #3) > (In reply to comment #2) > > This is allowed for simplicity with generated code, I believe. Makes it a bit > > easier to generate parameter lists, enumeration enums (darn those other enums), > > etc. > > > > This would make more sense for array literals, because generating them should > happen much more often than generating parameter lists. > > I have no problem with trailing commas, but it's not consistently allowed > everywhere. See bug 2477.