Skip to content

plan for having _ mean placeholder function syntax, ? mean wildcard / existential #576

@adriaanm

Description

@adriaanm

currently, _ means existential quantification at the type level

we would like to use ? instead, and use _ for placeholder function syntax at the value and type level

(its use for anonymous higher-order type params remains)

this means we'd need a version of scala where both _ and ? are valid for denoting wildcards, but this would mean claiming the ? identifier as a reserved keyword, which would break kind-projector

at the same time, we'd add support for type lambdas ([X] => Foo[X])

Metadata

Metadata

Assignees

No one assigned

    Labels

    dottytowards scala 3

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions