Reuse 'do' keyword instead of hash sign (#)
Mark Thornton
mthornton at optrak.com
Mon Jun 20 10:18:05 PDT 2011
On 20/06/11 17:56, Andrew Haley wrote:
> On 06/20/2011 04:52 PM, David Goodenough wrote:
>> Maybe if you want a keyword, use "lambda".
>>
>> So your i.e's below:-
>>
>> lambda()(5)
>> lambda(){return 5;}
>> lambda(int x,int y) { if (x>y) return x; else return y; }
>> button.onClick(lambda(Event e) { println("button clicked"); });
>>
>> This is not to say that we should use a keyword, rather a suggestion
>> if a keyword is to be used what it might be.
>>
>> This is offered in the "calling a spade a spade" tradition.
> So, why not "λ" ? :-)
> Java allows non-Latin characters in sources, surely...
>
> Andrew.
>
Should that be (the math version of lambda as opposed to the lower
case Greek letter λ)?
We could also have Math. (as opposed to Math.π).
I can see that using those characters would be rather unpopular with my
non mathematical colleagues.
Mark Thornton
More information about the lambda-dev
mailing list