From: Jean-Hugues ROBERT Date: 2004-04-27T16:58:45+09:00 Subject: Re: OT: key:val hashes (was Re: Approaches to localization?) At 16:41 27/04/2004 +0900, you wrote: >>However, try this: >> p {a:"1"} >>It apparently does nothing, weird ? >well, it will do nothing anyway, since it thinks you are trying to pass a >block to Kernel#p... Thanks. It apparently is equivalent to p { a( :"1") }. I got confused because I was not aware of the :"some string" syntax to create a Symbol ! >mark@imac% ruby -v -e'p({a:1,b:2})' >ruby 1.9.0 (2004-04-11) [powerpc-darwin] >{:b=>2, :a=>1} >I'm not sure when this was implemented; in fact, I didn't know it was >there already until now :) very nice, thanks matz! I agree that it is somehow difficult to track news. Apparently 1.9 will implement the 2.0 syntax before work actually starts on the VM for 2.0. See http://www.rubygarden.org/ruby?Rite Jean-Hugues