Kent Dahl <kentda / stud.ntnu.no> writes:

> But I'd have to argue against allowing trailing commas in method calls
> (and definitions), on the basis that it could make it easier to write
> methods that take a lot of parameters. IIRC, a large number of
> parameters to a method is a "code smell", and allowing the trailing
> comma would be like spraying some fresh pine scent on it to cover it...
> IMHO.

There's also an ambiguity:

   do_something 1,2,3,
   puts "done"

Do we call do_something with 3 parameters, or pass the nil result from
puts as well? You'd only be able to have trailing commas with
parenthesized parameter lists.



Cheers


Dave