![]() ![]() Immutable scala.Seq - Seq is now an alias for - Before, it was an alias for the possibly-mutable collection.Seq. As a result, GenSeq, GenTraversableOnce, et al are gone. Parallel collections are now a separate module. They remain only as deprecated aliases for Iterable and IterableOnce. Simpler type hierarchy - No more Traversable and TraversableOnce. A new BuildFrom implicit is used in a handful of places that need it. It also makes user code compile faster. The resulting library is easier to understand (in code, Scaladoc, and IDE code completion). Transformation methods no longer take an implicit CanBuildFrom parameter. The most important collections changes are: - Simpler method signatures - No more CanBuildFrom. Most ordinary code that used the old collections will continue to work as-is, except as detailed below. This is the centerpiece of the release. Collections redesign: - Standard library collections have been overhauled for for simplicity, performance, and safety. Compiler: 5-10% faster, deterministic output, improved optimizer. Language: Literal types, partial unification, by-name implicits, more. Elsewhere, useful classes and methods have been added. Standard library: Future is faster and more robust. Release summary: - 2.13 improves Scala in the following areas: - Collections: Standard library collections have been overhauled for simplicity, performance, and safety. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |