Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
adriaanm opened this issue Nov 3, 2018 · 3 comments
Labels
dotty towards scala 3

Comments

@adriaanm
Copy link
Contributor

adriaanm commented Nov 3, 2018

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])

@SethTisue
Copy link
Member

Martin opened a similar ticket at scala/scala3#5379

@SethTisue SethTisue added this to the 2.14 milestone Nov 3, 2018
@SethTisue
Copy link
Member

SethTisue commented Nov 3, 2018

there isn't anything to change we need to change for 2.13, I think? hence, optimistically, 2.14 milestone?

@adriaanm adriaanm added the dotty towards scala 3 label Jan 14, 2019
@SethTisue
Copy link
Member

out of scope for Scala 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotty towards scala 3
Projects
None yet
Development

No branches or pull requests

2 participants