Skip to content

Spec: Non-local returns are deprecated. #17936

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2023
Merged

Conversation

sjrd
Copy link
Member

@sjrd sjrd commented Jun 7, 2023

[skip ci]

@sjrd sjrd force-pushed the spec-nonlocal-returns branch from c7a6328 to 1d5f62a Compare June 20, 2023 13:08
@sjrd sjrd requested a review from bishabosha June 20, 2023 13:22
@@ -5,7 +5,7 @@ title: "Deprecated: Nonlocal Returns"
nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/nonlocal-returns.html
---

Returning from nested anonymous functions has been deprecated, and will produce a warning from version `3.2`.
Returning from nested anonymous functions is deprecated.
Copy link
Member

@bishabosha bishabosha Jun 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a comment that this was since 3.2, in case we want to also back-create versions since 3.0.0

@sjrd sjrd force-pushed the spec-nonlocal-returns branch from 1d5f62a to 07d17ec Compare June 20, 2023 16:08
@sjrd sjrd force-pushed the spec-nonlocal-returns branch from 07d17ec to 99f8baf Compare June 20, 2023 16:09
@sjrd sjrd merged commit 4dbcf09 into scala:main Jun 20, 2023
@sjrd sjrd deleted the spec-nonlocal-returns branch June 20, 2023 16:10
Kordyjan added a commit that referenced this pull request Dec 8, 2023
Backports #17936 to the LTS branch.

PR submitted by the release tooling.
[skip ci]
@Kordyjan Kordyjan added this to the 3.3.2 milestone Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants