Skip to content

Deprecate /: and :\ as symbolic aliases for foldLeft and foldRight #9607

@scabug

Description

@scabug

See http://scala-lang.org/blog/2016/01/02/new-year-resolutions.html.

Another example, where I have doubts if not regrets are the /: and :\ operators in scala.collections. They are cute synonyms for folds, and I am still fond of the analogy with falling dominoes they evoke. But in retrospect I think maybe they did give a bad example for others to go overboard with symbolic operators.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions