Approaches to localization?

well, it will do nothing anyway, since it thinks you are trying to pass
a block to Kernel#p…

but:

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 :slight_smile: very nice, thanks matz!

cheers,
–Mark

···

On Apr 27, 2004, at 12:00 AM, Jean-Hugues ROBERT wrote:

Now that the battle field is changed (i.e. we have key:val hashes)
could we insist on this feature a little more? :slight_smile:

We have key: val ? I tried, that does not work in 1.8 (is it 1.9 ?).
However, try this:
p {a:“1”}
It apparently does nothing, weird ?

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 :slight_smile: 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

···

At 16:41 27/04/2004 +0900, you wrote: