Skip to content

deprecate multi-parameter infix operations #503

Closed as not planned
Closed as not planned
@adriaanm

Description

@adriaanm

use a tuple instead

this enables a better story for auto-tupling (scala/scala3#4311)

deprecation path (for a given -Xsource level):

  • 2.14:
    • deprecation warning: application involving a multi-param infix operation
  • 3.0:
    • behavior change: application involving a multi-param infix operation is only allowed if the method takes a single argument, args are tupled
    • warning: definition of a symbolic method with multiple params ("cannot be used infix")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions