From: nobu.nokada@... Date: 2003-09-07T19:05:57+09:00 Subject: Re: proposal for a named parameter prefix Hi, At Sun, 7 Sep 2003 04:13:18 +0900, Jeff Mitchell wrote: > I propose: > > def foo4(*array,%params,&block) > array.each do |a| > # ... > end > params.each do |key, value| > # ... > end > @callback = block > end > > from above, > > def foo3(%what_is_this) > # ... > end > > Aha there's a percent sign so we know it's a hash. Why does a percent sign mean a hash? > To summerize, "%" gets us two things > > (1) a nice signal to let everyone know a named parameter hash is > there > > (2) the ability to mix variable-length arguments with named > parameters (in a nice way) IIRC, matz has thought ** for it. -- Nobu Nakada