Skip to content

Decide on final replacement for implicitly. #7152

Closed
@odersky

Description

@odersky

We currently use the as a replacement of implicitly. This works well if there is an explicit type argument, i.e.

the[Ordering[String]]

but it looks positively strange when the argument is omitted, i.e

val ord: Ordering[String] = the

One alternative would be to use theGiven instead. I.e.

theGiven[Ordering[String]]

val ord: Ordering[String] = theGiven

theGiven is a bit longer but works adequately in both scenarios.

This change is elaborated in #7150 (docs only, no implementation).

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