From: Evan Martin Date: 2002-06-14T03:35:43+09:00 Subject: Re: procs and blocks On Thu, Jun 13, 2002 at 08:20:11PM +0900, Dirk Detering wrote: > This seems to indicate me that 'named parameters' > are missing, which are possible in Python > (and do attract me)? > > With that the last line would read: > err (b=a) > > Ok, in Ruby there should be an alternative syntax, > as this one causes another result (and is supposed to). You can simulate named parameters with a hash: def foo(params) p params[:rar] p params[:blah] end foo(:blah => "hello", :rar => "meow") but yes, I agree Python is nicer in this respect. -- Evan Martin martine@cs.washington.edu http://neugierig.org