From: Eric Mahurin Date: 2005-07-01T03:11:38+09:00 Subject: Re: iterators and block arguments --- Daniel Brockman wrote: > Maybe this syntax could be adopted? > > def foo a, b, *args, c, d; ... end I want that too. It would be nice for the []= method where the value is always the last argument. Or any method where you want optional arguments first or in the middle. In general, this: def foo a, b, c=x, d=y, *other, e, f ... end should be equivalent to: def foo a, b, *remaining e,f = remaining.slice!(-2,2) c = remaining.empty? ? x : remaining.shift d = remaining.empty? ? y : remaining.shift other = remaining ... end Want to submit an RCR for this? I've already done my fair share. ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com