We are very happy to announce the first release candidate of Scala 2.10.4! If no serious blocking issues are found this will become the final 2.10.4 version.
The release is available for download from scala-lang.org or from Maven Central.
The Scala team and contributors fixed 23 issues since 2.10.3!
In total, 39 RC1 pull requests were merged on GitHub.
Known Issues
Before reporting a bug, please have a look at these known issues.
Scala IDE for Eclipse
The Scala IDE with this release built right in is available through the following update-site:
- for Eclipse 4.2/4.3 (Juno/Kepler)
Have a look at the getting started guide for more info.
New features in the 2.10 series
Since 2.10.4 is strictly a bug-fix release, here’s an overview of the most prominent new features and improvements as introduced in 2.10.0:
-
Value Classes
-
A class may now extend
AnyVal
to make it behave like a struct type (restrictions apply). -
https://docs.scala-lang.org/overviews/core/value-classes.html
-
-
Implicit Classes
-
The implicit modifier now also applies to class definitions to reduce the boilerplate of implicit wrappers.
-
-
String Interpolation
-
val what = "awesome"; println(s"string interpolation is ${what.toUpperCase}!")
-
https://docs.scala-lang.org/overviews/core/string-interpolation.html
-
-
Futures and Promises
-
Asynchronously get some JSON:
for (req <- WS.url(restApiUrl).get()) yield (req.json \ "users").as[List[User]]
(uses play!)
-
-
Dynamic and applyDynamic
-
x.foo
becomesx.applyDynamic("foo")
ifx
’s type does not define afoo
, but is a subtype ofDynamic
-
-
Dependent method types:
def identity(x: AnyRef): x.type = x
// the return type says we return exactly what we got
-
New ByteCode emitter based on ASM
-
Can target JDK 1.5, 1.6 and 1.7
-
Emits 1.6 bytecode by default
-
Old 1.5 backend is deprecated
-
-
A new Pattern Matcher
-
rewritten from scratch to generate more robust code (no more exponential blow-up!)
-
code generation and analyses are now independent (the latter can be turned off with
-Xno-patmat-analysis
)
-
-
Scaladoc Improvements
-
Implicits (-implicits flag)
-
Diagrams (-diagrams flag, requires graphviz)
-
Groups (-groups)
-
-
Modularized Language features
-
Get on top of the advanced Scala features used in your codebase by explicitly importing them.
-
https://docs.scala-lang.org/sips/modularizing-language-features.html
-
-
Parallel Collections are now configurable with custom thread pools
-
Akka Actors now part of the distribution
- scala.actors have been deprecated and the akka implementation is now included in the distribution.
-
Performance Improvements
-
Faster inliner
-
Range#sum
is now O(1) -
Update of ForkJoin library
-
Fixes in immutable
TreeSet
/TreeMap
-
Improvements to PartialFunctions
-
- Addition of
???
andNotImplementedError
- Addition of
IsTraversableOnce
+IsTraversableLike
type classes for extension methods -
Deprecations and cleanup
-
Floating point and octal literal syntax deprecation
-
Removed scala.dbc
-
Experimental features
-
Scala Reflection
-
Macros
The API is subject to (possibly major) changes in the 2.11.x series, but don’t let that stop you from experimenting with them! A lot of developers have already come up with very cool applications for them. Some examples can be seen at hxxp://scalamacros.org/news/2012/11/05/status-update.html.
A big thank you to all the contributors!
# | Author |
---|---|
16 | |
15 | |
3 | |
3 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
Commits and the issues they fixed since v2.10.3
Issue(s) | Commit | Message |
---|---|---|
SI-6426 | 47562e7adb | |
SI-8062 | f0d913b51d | |
SI-7912 | 006e2f2aad | |
SI-8060 | bb427a3416 | |
SI-7995 | 5ed834e251 | |
SI-8019 | c955cf4c2e | |
SI-8029 | fdcc262070 | |
SI-7439 | 8d74fa0242 | |
SI-8010 | 9036f774bc | |
SI-7982 | 7d4109486b | |
SI-6913 | 70634395a4 | |
SI-7458 | 02308c9691 | |
SI-7548 | 652b3b4b9d | |
SI-7548 | b7509c922f | |
SI-8005 | 3629b645cc | |
SI-8004 | 696545d53f | |
SI-7463, SI-8003 | b915f440eb | |
SI-7280 | 053a2744c6 | |
SI-7915 | 04df2e48e4 | |
SI-7776 | d15ed081ef | |
SI-6546 | 075f6f260c | |
SI-7638, SI-4012 | e09a8a2b7f | |
SI-7519 | 50c8b39ec4 | |
SI-7519 | ce74bb0060 | |
SI-4936, SI-6026 | e350bd2cbc | |
SI-6026 | 2bfe0e797c | |
SI-7295 | 25bcba59ce | |
SI-7020 | 7b560213cb | |
SI-7783 | 2ccbfa5778 | |
SI-7815 | 733b3220c9 |
Complete commit list!
sha | Title |
---|---|
3fa2c97853 | |
2aa9da578e | |
47562e7adb | |
f0d913b51d | |
9cdbe28c00 | |
006e2f2aad | |
bb427a3416 | |
27a38602de | |
139ba9d875 | |
e555106070 | |
dc6dd58d9d | |
f8d8f7d08d | |
5ed834e251 | |
c955cf4c2e | |
fdcc262070 | |
8d74fa0242 | |
9036f774bc | |
3faa2eedd8 | |
7d4109486b | |
70634395a4 | |
02308c9691 | |
652b3b4b9d | |
b7509c922f | |
0c963c9085 | |
3629b645cc | |
696545d53f | |
b915f440eb | |
053a2744c6 | |
eb9f0f7975 | |
3a8796da1a | |
04df2e48e4 | |
ec89b59717 | |
1d29c0a08b | |
31ead67a30 | |
852a9479d0 | |
40af1e0c44 | |
ba0718fd1d | |
d15ed081ef | |
6045a05b83 | |
075f6f260c | |
e09a8a2b7f | |
50c8b39ec4 | |
ce74bb0060 | |
e350bd2cbc | |
2bfe0e797c | |
25bcba59ce | |
7b560213cb | |
8986ee4fd5 | |
2ccbfa5778 | |
ee9138e99e | |
733b3220c9 |