From: Roger Pack Date: 2008-07-19T06:13:58+09:00 Subject: Re: NamedParameters v0.0.0 ('first', :second => 'release') ThoML wrote: > I think what was meant is this: > > def foo(a, args) > p a, args[:b], args[:c] || 'nope', args[:d] || 'yepp' > end > foo 1, :d => 4, :c => 3 > > In ruby 1.9, due to the new hash syntax, this can be also written as: > foo 1, d: 4, c: 3 > > Which almost looks like names arguments. Possibly. Kind of hard to tell from interview transcript notes :) My hope is that it'll be more than just ending hash based, but will support naming the variable names themselves. def foo(a, b) end foo 3, b: 4 Thanks! -R -- Posted via http://www.ruby-forum.com/.