-
Notifications
You must be signed in to change notification settings - Fork 31
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
Propose guidance on choosing Scala between Scala LTS and Next. #154
Open
zainab-ali
wants to merge
1
commit into
scalacenter:main
Choose a base branch
from
zainab-ali:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
date: May 2024 | ||
--- | ||
|
||
# Provide guidance on choosing between Scala LTS and Next | ||
|
||
## Proposer | ||
|
||
Proposed by Zainab Ali, Community Representative, 14th May 2024. | ||
|
||
## Abstract | ||
|
||
There is no clear guidance on how to choose between Scala LTS or Scala Next. This has lead to some open source projects adopting Next where LTS is recommended. Examples include [xebiafunctional/fetch](https://github.com/xebia-functional/fetch/commit/60b26afb242b1e248615c811f2c23a51d6cab6fe), [kovstas/fs2-throttler](https://github.com/kovstas/fs2-throttler/commit/e265f6d585aa55d101ddd5e631abb940fccce084) and [cquiroz/scala-java-locales](https://github.com/cquiroz/scala-java-locales/issues/490). | ||
|
||
The most prominent guidance in [the 2022 blog post on compatibility plans](https://www.scala-lang.org/blog/2022/08/17/long-term-compatibility-plans.html#the-future-best-practices) is outdated. [The 3.4.0 release notes](https://www.scala-lang.org/blog/2024/02/29/scala-3.4.0-and-3.3.3-released.html#-so-which-version-should-i-update-to) have better guidance, but are hard to discover. | ||
|
||
## Proposal | ||
|
||
The Scala website should include more guidance on choosing Scala versions. For example: | ||
- There could be instructions on the [download page](https://www.scala-lang.org/download/) on choosing between LTS and Next. | ||
- There could be an entry in the [migration guide](https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html) on which version to choose. | ||
- The [2022 blog post on compatibility plans](https://www.scala-lang.org/blog/2022/08/17/long-term-compatibility-plans.html#the-future-best-practices) could include a link to recent best practices. | ||
Ideally, there should be a link to guidance wherever Next or LTS are mentioned. | ||
|
||
Developers actively upgrading their Scala versions are unlikely to check the website, but do check other sources. | ||
- There should be a link to guidance in the [release notes](https://github.com/scala/scala3/releases/tag/3.4.1). | ||
- [Scala Steward's](https://github.com/scala-steward-org/scala-steward) PRs for Scala version upgrades could include explicit guidance and instructions on [pinning LTS](https://github.com/scala-steward-org/scala-steward/blob/main/docs/faq.md#how-can-version-updates-be-controlled). | ||
- Build tools such as mill, sbt, and scala-cli could potentially inform the user if a jar is configured for publishing with a Next version. | ||
|
||
## Cost | ||
|
||
In level of difficulty I estimate the following order (from easiest to | ||
hardest): | ||
|
||
1. Updating guidance on the Scala website. | ||
2. Updating Scala Steward's PR summary. | ||
3. Including guidance in build tool publishing steps. | ||
|
||
## Timescales | ||
|
||
Updating guidance on the Scala website and release notes could be done quickly. As developers are currently in the process of adopting `3.4`, the earlier this guidance is available, the better. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the problem with the 2022 isn't that it's outdated, but it's confusing because it's inconsistent in its messaging.
First it says:
But in the later section it says:
So while not everyone are owners of commercial projects or library maintainers, those two are the main active drivers of the Scala community (I think?), so it's confusing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This messaging around commercial projects is different to the release notes
This implies that new commercial projects should use
3.4.x
as opposed to LTS.