Scala 2.12 会要求 Java 8,Scala 2.11 将会继续支持 Java 6。以下是 Scala 2.11 和 Scala 2.12 的共有特性:
Compile lambdas efficiently using method handles. (Separate compatibility module needed on 2.11 - see below.)
Java 8 interop (bidirectional):
Fully integrate Miguel’s new back-end & optimizer (refactor code, test & document in-depth, remove old back-end).
Style checker: an efficient, community-driven, platform for accurate coding style checking (built on top of the compiler).
Collections: improve test coverage, performance, documentation (& modularize?)
Improve documentation: focus on content. (This is a great place to start contributing, as well as on the tooling side of documentation.)
Continue infrastructure improvements (sbt build, improve pull request validation & release automation, bug tracker cleanup and automation).
Scala 2.12 将会有更多的 Java 8 特性:
Turn FunctionN into Functional Interfaces, so that Java 8 code can call higher-order methods in Scala without a wrapper.
Support for @interface traits, which are guaranteed to compile to Java interfaces (useful for interop, performance and binary compatibility). This is a generalization of the above feature.
Streams: integrate into Scala collections? (Anywhere from providing converters to replacing existing functionality.)
Use the JDK’s forkjoin library instead of embedding our own. (Switch the global default ExecutionContext to be backed by the ForkJoinPool.commonPool().)
SIP-20 Improved lazy val initialization (if time allows).
发布计划
Scala 2.10.5 (Q4 2014) 将会是最后的 2.10 版本。
Scala是一门现代的多范式编程语言,志在以简练、优雅及类型安全的方式来表达常用编程模式。它平滑地集成了面向对象和函数语言的特性。
项目主页:http://scala-lang.org/news/2.12-roadmap
下载地址:https://github.com/scala/scala
来自:开源中国社区

