You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Scala, a return statement inside a nested anonymous function is implemented by throwing and catching a NonLocalReturnException. It says so in the Scala Language Specification, section 6.20.
Actually the NonLocalReturnException was renamed as NonLocalReturnControl, and related content in the pdf is not up to date.
The section
2.1. MUST NOT use "return"
states:Actually the NonLocalReturnException was renamed as
NonLocalReturnControl
, and related content in the pdf is not up to date.refs: https://issues.scala-lang.org/browse/SI-4862
The text was updated successfully, but these errors were encountered: