From: Robert Klemme Date: 2008-04-21T22:55:39+09:00 Subject: Re: ruby wish-list 2008/4/21, Roger Pack : > I wish this worked :) > > >> def a > >> end > => nil > >> a {:b => true} > SyntaxError: compile error > (irb):3: syntax error, unexpected tASSOC, expecting '}' > a {:b => true} > ^ > from (irb):3 irb(main):001:0> def a(x)end => nil irb(main):002:0> a(:b=>true) => nil irb(main):003:0> > I have no idea why it doesn't consider a hash a parameter. Precedence. Cheers robert -- use.inject do |as, often| as.you_can - without end