-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Decide what future
behavior should be enabled in 3.4
#16334
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
Comments
In fact, now is the time to look at all |
I see the following occurrences of Refutable patternsMake it an error if in
or
the pattern p is refutable pattern. Right now it is a warning.
Recommendation: ? We can enable it if there is a way to cross compile to 2.13. For val's this is the case, but I am not sure about the for expression case? Can we write Wildcard ArgumentsDrop I.e. use Recommendation: ? Deprecate type tests using
|
future
behavior should be enabled in 2.13
future
behavior should be enabled in 2.13future
behavior should be enabled in 3.3
Yes, this is possible in both 2.12 and 2.13 now, case is just a no-op by default: scala/scala#9721 |
I was looking for a way to directly unpack tuples on for comprehensions and found I wonder if there plans to make it available as default in Scala 3.3 without the flag? |
Hi, just FYI the documentation still states that the new pattern bindings behavior "will be enabled by default in version 3.2 of the language", which turns out not to be true. I can send a PR updating the docs, but I was wondering if there's a scheduled timeline for this? |
Ideally 3.4, there's now a thread on contributors on the subject: https://contributors.scala-lang.org/t/make-tuple-unpack-feature-from-source-future-become-default/6238 |
There's no scheduled timeline. It would be great if someone would work out a proposition. |
I understand the implementation already exists in dotty and it would be a matter of making it into 3.4 instead of source:future, correct? If so, I could take a look into trying to submit a PR changing this. |
future
behavior should be enabled in 3.3future
behavior should be enabled in 3.4
I've now updated the title to be what to enable in 3.4 |
I have taken the liberty of adding this to the 3.4.0 milestone. |
Also, please look at making -XmacroSettings non-experimental. |
-XmacroSettings is not ready to be made non experimental. We do not have a proper specification for it and we know that the current implementation is fundamentally broken. |
I've submitted #18606 to address the direct tuple assignment in for comprehensions. |
We decided to include in 3.4 all that is already on maser plus what is listed in the 3.4 milestone. The list of syntactic deprecation warnings that will be enabled in 3.4 can be found here. |
This does not seem enabled in Scala 3.4.x |
3.5 is already defined, but it should arrive in 3.6, later this year. It is already enabled under |
Uh oh!
There was an error while loading. Please reload this page.
for
-source:3.4
we need to turn on currentfuture
semantics for refutable pattern bindingsThe text was updated successfully, but these errors were encountered: