From: Gavin Kistner Date: 2005-08-05T22:13:17+09:00 Subject: Re: new block notation (was: Re: ruby-dev summary 26468-26661) --Apple-Mail-3-1058983839 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Aug 4, 2005, at 11:01 PM, Mike Austin wrote: >> f = def(x, y, z = x | y) { ... } # also need to allow def x() { ... } >> f = fun(x, y, z = x | y) { ... } # a new keyword >> > > I find this the most unified looking, similar to JavaScript's > function() {}. Ah, but that's the problem, IMO. Javascript's "function(){ ... }" is so verbose that I would never *think* of using an anonymous function the way we use blocks in Ruby: var out = ""; myArray.each( function(el){ out += el; } ); --Apple-Mail-3-1058983839--