return-from-lambda viewed as dangerous, good alternatives

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


Le 07/01/2010 11:12, Stephen Colebourne a écrit :
> 2010/1/7 John Rose<John.Rose at sun.com>:
> These points are all good and valid, but I hope that Mark's decision
> has closed the debate on this. I'm not arguing that your points aren't
> valid, its just that they aren't valid for Java.
>
> Now, other languages, old (Smalltalk) and new (Scala) do manage to
> have transparent closures. But this is as part of the holistic vision
> for their language. Java's vision is different, and the approaches
> that look and feel right in Java are different.
>
> For example, the equivalent to closures in C#, Javascript, Fantom and
> C++ all define local returns AFAIK. This is partly about a common
> understanding of what works for that category of language (mixture of
> statement and expression).
>
>    

C# has expression tree, so it doesn't need to have transparent lambda.

[...]

> Stephen
>    

Rémi


More information about the lambda-dev mailing list