This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Fwd: Sanity of "return"

1 reply
Andrés Testi
Joined: 2009-01-22,
User offline. Last seen 42 years 45 weeks ago.

Thanks James, I agree. I think return is a kind of goto but I was not
sure if my opinion was correct. It is a cultural issue, Java
programmers will try to put return everywhere, including lambda
expressions.
Regards.

- Andrés

tolsen77
Joined: 2008-10-08,
User offline. Last seen 1 year 38 weeks ago.
Re: Sanity of "return"
I atleast got tricked once with a return statement in a case statement. With all the anonymous function calls generated it can get a bit hairy.

On Wed, Mar 4, 2009 at 4:22 AM, Andrés Testi <andres.a.testi@gmail.com> wrote:
Thanks James, I agree. I think return is a kind of goto but I was not
sure if my opinion was correct. It is a cultural issue, Java
programmers will try to put return everywhere, including lambda
expressions.
Regards.

- Andrés

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland