I'm not sure the lambda syntax will provide anything useful for that. Can
you be more specific, Reinier, in case I've missed something?
Incidentally, valid since Java 1.1:
int x = new Object() { int foo() { int result = 5; result++; result *= 10;
return result; } }.foo();
On Fri, Jan 18, 2013 at 11:54 AM, Reinier Zwitserloot <[email protected]>wrote:
> Wait for java 8. It'll have something like it (google for 'state lambda
> goetz' for explanations of syntax and how it'll work).
>
>
> On Friday, January 4, 2013 5:16:08 PM UTC+1, liang guo wrote:
>>
>> Hello,
>> That's a good idea. Recently I'm doing a project, adding Python List
>> feature to javac, I found I need this block expression very much. Do you
>> know any one implemented this? Or any further information? I may have to
>> implement it myself, if not. Thanks very much.
>>
>>
>> 在 2009年2月24日星期二UTC下午8时22分19秒,**Reinier Zwitserloot写道:
>>>
>>> Via twitter:
>>>
>>> http://docs.google.com/Doc?id=**ddb3zt39_77cgxvktgs&hl=en<http://docs.google.com/Doc?id=ddb3zt39_77cgxvktgs&hl=en>
>>>
>>> I like it, mostly. Less magic as with the BGGA proposal (where the
>>> final semi-colon or lack thereof decides between a void or a non-void
>>> return type), and far less impact.
>>>
>>> Incidentally, my forthcoming unifiying closure proposal (or really any
>>> other closure proposal) could use familiarity in the community with
>>> the concept.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Java Posse" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/javaposse/-/0W8pcAUNT4gJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/javaposse?hl=en.
>
--
You received this message because you are subscribed to the Google Groups "Java
Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/javaposse?hl=en.