On Dec 12, 5:11 pm, ry dahl <r... / tinyclouds.org> wrote:
> I'm very disappointed that I cannot format my hashes like this
>   { :a => 1
>   , :b => 2
>   , :c => 3
>   }
> The technique is popular in the haskell community; it has some obvious
> benefits over the traditional
>   { :a => 1,
>     :b => 2,
>     :c => 3
>   }
> It doesn't work in 1.9 either.

For the same obvious reasons as you desire that, does it sufficiently
please you that this alternate markup works:

C:\>type tmp.rb
h = {
  :a => 1,
  :b => 2,
  :c => 3,
}

p h

C:\>ruby tmp.rb
{:c=>3, :a=>1, :b=>2}