Skip to content

Make Scala 3 DSL use context functions, to avoid polluting scope with _.everyItem, _everyMapKey, etc extensions #770

@MateuszKubuszok

Description

@MateuszKubuszok

It would require creating:

  • a new phantom type
  • turning all path functions in Scala 3 DSL from S => T into PhantomType ?=> S => T
  • making all path extension methods require this phantom type
  • updating macros that parse the selectors

Since this is a breaking change it could happen on 2.0.0-development branch.

Actually, it could be implemented on master, it's in a macro and all such code has to be erased by the compiler anyway - it's impossible to write a code that would stop compiling after migrating to a new version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementrelatively easy but not smallTask with requires some knowledge and writing more code, but not the intimate knowledge about macros

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions