-
Notifications
You must be signed in to change notification settings - Fork 75
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
Scala 3 mode with _
as a placeholder and ?
as wildcard?
#120
Comments
maybe we can nerd-snipe @martijnhoekstra into this (since he volunteered for #172, and no good deed should go unpunished) |
dammit Seth |
sounds like it's working :-) |
I'm punting on this one. |
maybe someone else watching the repo would like to volunteer... |
Is this even technically possible to implement in a compiler plugin? There must've been a reason in the first place to choose the longer |
@SethTisue However, it's not possible to implement
They're very frequent in my code, so even if a |
@neko-kai I wish I had time to properly think through all your aspects of your suggestion but I don't, so the following is only a partial response. I can't think of a reason why a scala/scala PR wouldn't be accepted that allowed In Scala 2, we generally discourage |
Scala 2.13.6 and 2.12.14 will interpret ? as a wildcard when using the |
@smarter Thanks! This solves one half of the puzzle. |
There is now a PR that implements this #188 |
Since dotty/Scala 3 is going to swap the meaning of these two (already does with a flag
-source:3.2
), would it be possible to support it in kind-projector, to be able to cross-compile Scala 2 / dotty projects with new syntax directly, without going through intermediate*
period.That would be convenient for those projects that are more comfortable making 1 syntax jump right now, instead of 2 syntax jumps in the future.
The text was updated successfully, but these errors were encountered: