I believe this parsing behavior is intentional and not an error. This is an unfortunate side effect of Ruby, allowing you to skip parentheses. This code is of course fine:
def f x, y=0
x + y
end
f 2
f 2, 3
But what is the result of this code?
[f 2, 3]
[2,3]
[5]
? , , . Ruby , , .
, , , , , (- , ) .
: , , ,
[3, f 2]
, , , , . .