plan for having _
mean placeholder function syntax, ?
mean wildcard / existential
#576
Labels
dotty
towards scala 3
Milestone
currently,
_
means existential quantification at the type levelwe 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-projectorat the same time, we'd add support for type lambdas (
[X] => Foo[X]
)The text was updated successfully, but these errors were encountered: