Hi,
I was wondering why Ruby was designed so that
  def f(u, v=1, *x)
    p u, v, x
  end
is OK, but
  def g(u, *v, x=1)
    p u, v, x
  end
gives a syntax error.

I would've expected g(1) to print
1
[]
1
g(1,2) to print
1
[]
2
and g(1,2,3,4,5) to print
1
[2,3,4]
5

-- 
Posted via http://www.ruby-forum.com/.