Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

backwards-binary-compatible Scala standard library additions

License

NotificationsYou must be signed in to change notification settings

scala/scala-library-next

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo holds code that will be added to a future version ofthe Scala standard library.

We will publish this as a library, to make the additions usableimmediately. But publishing hasn't happened yet. (The repo only juststarted, in October 2020.)

Why?

Why make a library for this? Because:

  • Scala 2.13 is expected to be final major release of Scala 2.
  • We cannot make additions to the standard library in the Scala 2.13.xseries, because of ourbinary compatibilityconstraints.
  • To help users transition from Scala 2 to 3, Scala 2.13 and 3.0 willshare the same standard library.

Therefore, additions to the library cannot happen until Scala 3.1 at the earliest.

But why publish the additions separately in the meantime? Because:

  • Users may find the additions useful now.
  • Having users start using the additions now will help shake outproblems early.
  • Contributors will be more motivated to work on improvements if userscan use them now.

What can be added?

Anything merged herewill become part of the next Scala standard library.

Therefore, we will not merge anything here unless the Scala 2 and 3teams agree on the addition. The bar for accepting additions remainsvery high.

Is it okay to open an issue and/or pull request regardless? Yes,definitely. Let's discuss your idea. Just be aware that the bar ishigh and contributions may be rejected unless there is a high degreeof consensus and confidence that it really belongs in the standardlibrary.

It's not required, but you may wish to bring your idea up oncontributors.scala-lang.orgfirst to gauge reaction.

There are may be technical constraints on what can be added, sincethis a separate codebase from the actual standard library. So forexample if you want to add a new method to an existing class, it mustbe added as an extension method. We are still discussing details onissue #4.

What if my contribution is rejected?

If your contribution is collections-themed, it could find a home atscala-collection-contrib, which has a much more liberal merge policy.

You might also consider publishing your code yourself in a separate library, of course.

History

The discussions that led to this repo being created are here:

The name was discussed here:

About

backwards-binary-compatible Scala standard library additions

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors11

Languages


[8]ページ先頭

©2009-2025 Movatter.jp