From: Gordon Thiesfeld Date: 2008-04-21T23:34:44+09:00 Subject: Re: ruby wish-list On Mon, Apr 21, 2008 at 9:23 AM, Roger Pack wrote: > >> I have no idea why it doesn't consider a hash a parameter. > > > > Precedence. > Yeah for some reason it is considering my function a block a higher > predencdence than a hash parameter. > So my next wish would be: > That ruby-core would allow us to make suggestions for how to better > their error messages :) > And also [sigh] that hashes and blocks used a different syntax, or that > the ambiguity noted could be overcome. > Cheers. > >> def a(hash) >> hash >> end => nil >> a :a => false, :b =>true => {:a=>false, :b=>true}