Skip to content
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

Refine the bounds of the Tuple.Filter type lambda predicate .. #21286

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

EugeneFlesselle
Copy link
Contributor

to only require it be defined on the elements of the tuple.

This is one of the ongoing proposed tuple improvements, addressing #19175.

As carefully pointed out by @sjrd, this is a potential breaking change.
See tests/neg/tuple-filter-compat.scala for an example.

This is not an unprecedented change however, the analogous improvements were made to Tuple.{Map, FlatMap} in 28a695e.

I guess this should be discussed, and decided whether or not to merge, by the core team.

to only require it be defined on the elements of the tuple.

This is one of the ongoing proposed tuple improvements, addressing scala#19175.

As carefully pointed out by @sjrd, this _is_ a potential breaking change.
See tests/neg/tuple-filter-compat.scala for an example.

This is not an unprecedented change however,
the analogous improvements were made to `Tuple.{Map, FlatMap}` in 28a695e.
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.

1 participant