![]() ![]() New concrete collections - immutable.LazyList replaces immutable.Stream. The mutable versions now perform on par with the Java standard library's implementations. They substantially outperform the old implementations in most scenarios. New, faster HashMap/Set implementations - Both immutable (d5ae93e) and mutable (#7348) versions were completely replaced. (#6970) - Simplified views that work - collection.Views have been vastly simplified and should now work reliably. Arrays passed as varargs are defensively copied. This also changes the type of varargs in methods and pattern matches. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |