unknown wrote:
> Quoting Jeff Cohen <cohen.jeff / gmail.com>:
> 
> Assignments are legal in most places that => is; would you want to
> trade one for the other?
> 
> -mental

Really?  This works for me:

  h = { 'a' => 5, 'b' => 6 }

but this gives my syntax errors:

  h = { 'a' = 5, 'b' = 6 }

test.rb:1: odd number list for Hash
h = { 'a' = 5, 'b' = 6 }
           ^
test.rb:1: syntax error
h = { 'a' = 5, 'b' = 6 }
           ^

Maybe I'm doing something wrong here?

-- 
Posted via http://www.ruby-forum.com/.