return-from-lambda viewed as dangerous, good alternatives

Rémi Forax forax at univ-mlv.fr
Thu Jan 7 15:24:51 PST 2010


Le 07/01/2010 20:13, Neal Gafter a écrit :
> On Thu, Jan 7, 2010 at 10:45 AM, Rémi Forax <forax at univ-mlv.fr 
> <mailto:forax at univ-mlv.fr>> wrote:
>
>     C# has expression tree, so it doesn't need to have transparent lambda.
>
>
> How do expression trees help address the use cases for transparency?  
> I don't think they have anything to do with each other.

You can rewrite lambda expressions in order to transform return, break 
and continue
to throw an exception that will be catch by the method invoking the lambda.

Rémi




More information about the lambda-dev mailing list