Skip to content

Convert -Ycc to language import #16240

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 7 commits into from
Oct 25, 2022
Merged

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Oct 24, 2022

Two new experimental language imports:

  • captureChecking: replaces -Ycc
  • pureFunctions: Enables pure function syntax A -> B

@odersky odersky force-pushed the add-purefuns branch 2 times, most recently from 9d8e2bc to 32ee957 Compare October 24, 2022 17:39
Two new experimental language imports:

 - captureChecking: replaces -Ycc
 - pureFunctions: Enables pure function syntax A -> B
This avoids the problem that we do not want to make `*` visible
under the scala package, even if pureFunctions or captureChecking is enabled.
Complete the functionality of allowing language imports for pureFunctions
and captureChecking:

 - make parser work with them
 - make printer to recognize them
It can now be expressed as `@retains(caps.*)`.
@odersky odersky merged commit 602ed35 into scala:main Oct 25, 2022
@odersky odersky deleted the add-purefuns branch October 25, 2022 18:05
@Kordyjan Kordyjan added this to the 3.2.2 milestone Aug 1, 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.

2 participants