![]() CompatibilityĪlthough Scala 2.11 and 2.12 are mostly source compatible to facilitate cross-building, they are not binary compatible. Closure allocations, dead code, and box/unbox pairs are eliminated more often.įor additional features, read on.Inlining: many more (effectively) final methods, including those defined in objects and traits, are now inlined.This release ships with a powerful new optimizer: No class file is generated for a lambda invokedynamic is used instead. The FunctionN classes in Scala’s standard library are now Single Abstract Method (SAM) types, and all SAM types are treated uniformly – from type checking through code generation. Scala and Java 8 interop is also improved for functional code, as methods that take functions can easily be called in both directions using lambda syntax.This improves binary compatibility and Java interoperability. A trait compiles directly to an interface with default methods.The Scala 2.12 compiler has been completely overhauled to make use of the new VM features available in Java 8: We are very happy to announce the availability of Scala 2.12.0! Headline features
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |