From: Phlip Date: 2008-12-07T23:18:45+09:00 Subject: Re: Very Basic Question Yaser Sulaiman wrote: > def accept_hash(var) > print "got: ", var.inspect > end > accept_hash :arg1 => 'giving arg1', :argN => 'giving argN' Better, Ruby 1.9 will let us fold the symbol and => notation: arg1: 'giving arg1', argN: 'giving argN' This means that Ruby has invented the "named argument" system, but it did it the right way; by building the feature out of low-level syntax elements that we can reuse for other situations. Ruby did not do what some languages do - invent named arguments using their own magic system that only works in method argument lists. -- Phlip