Allen's lambda syntax proposal

Chris Pine chrispi at opera.com
Mon Dec 1 05:45:16 PST 2008


Peter Michaux wrote:
> On Mon, Dec 1, 2008 at 2:06 AM, Chris Pine <chrispi at opera.com> wrote:
>> Brendan Eich wrote:
>>> // Instead of lambda (a, b, c) { ... }, why not:
>>> { |a, b, c| ... } ?
>> Looks like Ruby to me, so you know I love it.  :)
>>
>> Nice lambda syntax really matters.  If that tool is too heavy, I only use it
>> half as often as I should.
> 
> What is to be made of that last sentence? If you have a choice between
> the following, The "lambda" version is still shorter.
> 
> function() {}
> lambda() {}
   {||}

Not from where I'm sitting... 'lambda' is shorter than 'function', but 
'{||}' is shortest of all... or perhaps I don't understand you?

Chris


More information about the Es-discuss mailing list