-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Migration rewrites for infix arguments interpreted as named tuples #21949
Merged
WojciechMazur
merged 6 commits into
scala:main
from
WojciechMazur:rewrite/infix-named-args
Nov 18, 2024
Merged
Migration rewrites for infix arguments interpreted as named tuples #21949
WojciechMazur
merged 6 commits into
scala:main
from
WojciechMazur:rewrite/infix-named-args
Nov 18, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mbovel
approved these changes
Nov 15, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Co-authored-by: Matt Bovel <[email protected]>
WojciechMazur
added
the
backport:nominated
If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it.
label
Nov 18, 2024
WojciechMazur
added a commit
that referenced
this pull request
Nov 18, 2024
…21949) Best effort migration rewrites based on prior work in #21565 At this point, it's too late to deprecate named infix arguments. Let's produce warnings instead. We accept infix arguments that might be an argument of a named tuple, eg. `zip`, `++` or `==` - each of these takes a single argument with NamedTuple. --------- Co-authored-by: Som Snytt <[email protected]> Co-authored-by: Matt Bovel <[email protected]> [Cherry-picked 5d5a9e6]
WojciechMazur
added
backport:accepted
This PR needs to be backported, once it's been backported replace this tag by "backport:done"
and removed
backport:nominated
If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it.
labels
Nov 18, 2024
WojciechMazur
added
backport:done
This PR was successfully backported.
and removed
backport:accepted
This PR needs to be backported, once it's been backported replace this tag by "backport:done"
labels
Nov 18, 2024
KacperFKorban
pushed a commit
to dotty-staging/dotty
that referenced
this pull request
Nov 20, 2024
…cala#21949) Best effort migration rewrites based on prior work in scala#21565 At this point, it's too late to deprecate named infix arguments. Let's produce warnings instead. We accept infix arguments that might be an argument of a named tuple, eg. `zip`, `++` or `==` - each of these takes a single argument with NamedTuple. --------- Co-authored-by: Som Snytt <[email protected]> Co-authored-by: Matt Bovel <[email protected]>
WojciechMazur
added a commit
that referenced
this pull request
Nov 28, 2024
Resolves #22042 * Reverts most of the stabilization changes introduced in #21680 excluding bugfixes introduced when stabilizing the name tuples * Adapts #21823 and #21949 warnings to make them both syntax deprecations instead of ambiguous syntax. * Adds automatic rewrite to #21823 to replace `(foo = bar)` into `{foo = bar}`
KacperFKorban
pushed a commit
to dotty-staging/dotty
that referenced
this pull request
Nov 29, 2024
…cala#21949) Best effort migration rewrites based on prior work in scala#21565 At this point, it's too late to deprecate named infix arguments. Let's produce warnings instead. We accept infix arguments that might be an argument of a named tuple, eg. `zip`, `++` or `==` - each of these takes a single argument with NamedTuple. --------- Co-authored-by: Som Snytt <[email protected]> Co-authored-by: Matt Bovel <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backport:done
This PR was successfully backported.
release-notes
Should be mentioned in the release notes
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #21681
Resolves #21767 - fixes 5 out of 6 referenced projects. The only still failing project
tarao/record4s
is mostly made obsolete under Scala 3.6. It was defining a named tuples-like DSLBest effort migration rewrites based on prior work in #21565
At this point, it's too late to deprecate named infix arguments. Let's produce warnings instead. We accept infix arguments that might be an argument of a named tuple, eg.
zip
,++
or==
- each of these takes a single argument with NamedTuple.If accepted it should be backported to 3.6