Skip to content
This repository was archived by the owner on Nov 29, 2020. It is now read-only.
This repository was archived by the owner on Nov 29, 2020. It is now read-only.

Prefer vals when choosing a typeclass instance. #22

Open
@sir-wabbit

Description

@sir-wabbit

Currently typeclass resolution just asks for allImplicits and then chooses the first successful one. That could result in inefficient code.

  • prefer vals over defs or complex expressions.
  • prefer vals with the shortest prefix.
  • prefer vals that are local to the method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions