return-from-lambda viewed as dangerous, good alternatives

Rémi Forax forax at univ-mlv.fr
Thu Jan 7 10:44:22 PST 2010


Le 07/01/2010 19:20, Rémi Forax a écrit :
> Le 07/01/2010 18:50, Neal Gafter a écrit :
>    
>> On Thu, Jan 7, 2010 at 2:29 AM, Rémi Forax<forax at univ-mlv.fr>   wrote:
>>
>>      
>>> Le 07/01/2010 10:16, John Rose a écrit :
>>>
>>>        
>>>> For the purposes of this list (lambda-dev), I want to make a clear argument against overloading the "return" keyword to denote a lambda result value, in addition to its denotations in current Java. I also want to suggest a range of alternatives.
>>>>
>>>>
>>>>          
>>> [...]
>>>
>>> I am with John about that.
>>>
>>> In my opinion, if lambda are anonymous functions, return should return
>>> the lambda result value
>>> and lambda will never be transparent lambda.
>>>
>>>        
>> In other words, you disagree with John, and think that return should
>> take on the additional new meaning of returning from a lambda?
>>
>>      
> No, I just think there is choice:
> Supporting transparent lambda or not supporting it but
> you can't say something like we will see in next version if we can
> support it.
>    

To be crystal clear, this doesn't mean we can't introduce another syntax
later for transparent blocks but this kind of block will not be lambda 
block.

Rémi



More information about the lambda-dev mailing list