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

Change 3.1 to future #11355

Merged
merged 4 commits into from
Feb 10, 2021
Merged

Change 3.1 to future #11355

merged 4 commits into from
Feb 10, 2021

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Feb 9, 2021

It's now

-source future
-source future-migration

import language.future
import language.`future-migration`

instead of

-source 3.1
-source 3.1-migration

import language.`3.1`
import language.`3.1-migration`

It's now

    -source future
    -source future-migration

    import language.future
    import language.`future-migration`

instead of

    -source 3.1
    -source 3.1-migration

    import language.`3.1`
    import language.`3.1-migration`
@som-snytt
Copy link
Contributor

FTR, scala 2 moved away from -Xfuture to more specific -Xsource.

scala/scala#7328

I'm reminded there was an experiment with import language.future.X.

I had got used to -strict then -source 3.1. I agree with -source future to mean "our best understanding of where we're going, irrespective of when features land (or ship) in fact."

Scala 2 had suffered from the conflation of future and experimental, where "experimental" is "the future that never arrives", or, possibly, "the status quo."

docs/docs/reference/contextual/context-bounds.md Outdated Show resolved Hide resolved
@smarter smarter assigned odersky and unassigned smarter Feb 9, 2021
Co-authored-by: Guillaume Martres <smarter@ubuntu.com>
@odersky
Copy link
Contributor Author

odersky commented Feb 10, 2021

@som-snytt We will keep 3.x for versions that we know (i.e. all past versions and the next one once planning for it is complete), and future for all things that are planned to be shipped yet don't have an assigned version yet.

@odersky odersky merged commit 5b46900 into scala:master Feb 10, 2021
@odersky odersky deleted the change-future-source branch February 10, 2021 10:36
@odersky odersky mentioned this pull request Feb 16, 2021
@Kordyjan Kordyjan added this to the 3.0.0 milestone Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Settle on a way to migrate to future language versions
4 participants