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
deprecate multi-parameter infix operations #503
Comments
@smarter suggests we start warning on definition in 2.13, this way library authors can either mark symbolic multi-param methods as |
note that the 2.14 warning shouldn't fire on method that take a single argument list, since those will still be ok in 3.0 |
the main goal being that the following applications will remain accepted during the whole upgrade (for time-varying reasons)
the following will warn / error over time:
(because they take multiple arguments) |
new proposal at scala/scala3#4311 (comment) |
note that new proposal includes a 2.13 change (warning on definition) |
@adriaanm where do we stand on this for RC1? |
This will need to wait until later in 2.13.x |
Since we are shipping a bunch of collection changes in 2.13, and multi-parameter |
Ref scala/scala-dev#503 As a preparatory step towards multi-parameter infix notation, this will deprecate the declaration of symbolic method so the library authors can either mark symbolic multi-param methods as `@deprecated` in their library or migrate to something else.
Ref scala/scala-dev#503 As a preparatory step towards multi-parameter infix notation, this will deprecate the declaration of symbolic method so the library authors can either mark symbolic multi-param methods as `@deprecated` in their library or migrate to something else.
Here's a PR to deprecate multi-parameter symbolic method decl - scala/scala#7792 |
Here's deprecation on the application side under -Xsource:2.14 - scala/scala#7795 |
Somewhere I threatened a lint if deprecation was dropped. |
out of scope for Scala 2 |
use a tuple instead
this enables a better story for auto-tupling (scala/scala3#4311)
deprecation path (for a given -Xsource level):
The text was updated successfully, but these errors were encountered: