From: "Ara.T.Howard" Date: 2005-08-05T23:15:29+09:00 Subject: Re: new block notation (was: Re: ruby-dev summary 26468-26661) On Fri, 5 Aug 2005, Jason Foreman wrote: > I hadn't seen this particular variant posted in this thread yet. > Apologies if it was and I missed it. I make no claims as to its ease > of parsing or whatever, but it looks better than many of the other > options to me. > > > bar = { x, y=3, z=b|5 -> > x + y * z > } > > > I believe this is similar to the approach that Groovy [1] uses for its blocks. > > > Jason > > [1] http://groovy.codehaus.org nice. i like it! -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | My religion is very simple. My religion is kindness. | --Tenzin Gyatso ===============================================================================