il Thu, 3 Jun 2004 19:07:17 +0900, David Garamond <lists / zara.6.isreserved.com> ha scritto:: >But I suspect there will be lots of changes needed for Ruby 1.x source >to work with Ruby2. For instance, as I understand, the syntax for hash >literal will become: > > {'foo': 1, 'bar': 2} > >where in Ruby1.x it's: > > {'foo', 1, 'bar', 2} > {'foo' => 1, 'bar' => 2} > >I suspect Ruby2 will forbid the latter? > the old syntax should remain. But in addition you get: foo: bar that would mean: :foo => bar