Skip to content

Move Eq instances into scala.Eq companion object? #2698

@Blaisorblade

Description

@Blaisorblade

Discussion after https://www.reddit.com/r/programming/comments/6elim6/announcing_dotty_012rc1_a_major_step_towards/ points out that the extra implicit instances of Eq infect the global namespace and that's undesirable — those instances are currently available for autocompletion when typing e.

Could one move them to Eq's companion object?

That might require using a different object as default instance, and maybe patching compiler special cases—such changes are included in the scope of this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions