Trailing comma in method call


(Gavin Kistner) #1

[1,2,3, ] is valid Ruby
{ 1=>2, } is valid Ruby

Wouldn’t it sort of make sense for:

myMethod(a,b,)

to be valid Ruby?

···


(-, /\ / / //, who is copy/pasting lines of arguments, and keeps
forgetting to add a , or remove the last one.