Scala 3.10.2-RC1 and 3.10.2-RC2 is now available for public testing!. Please try it on your projects:
New experimental features:
- SIP-79: relaxed null checks under
strictEquality:x == null,x != nullandcase nullwork forT | Nullwithout aCanEqualinstance. Enable with-language:experimental.relaxedNullChecks#26420 - Variance in specialized traits: specialized traits can now have covariant and contravariant type parameters #27581
FunctionN.applyUsing: calls a regular function with arguments taken from the givens in scope, e.g.(Service(_, _)).applyUsing. For arities above 22 there is an experimental overload #27295
Other notable changes:
- Default arguments of
transparent inlinemethods are now inlined together with the method body. This is relevant if you write macros or inline-heavy libraries #27516 - Trait initialization and super calls use the Scala 2 encoding again #8652
- A union type pattern in
catch, e.g.case _: (A | B), now compiles to a JVM multi-catch #27294 - Scaladoc:
- REPL: new
:completions <input>command, ported from Scala 2 #27489 - Compiler and JVM optimizer performance work, plus many fixes to capture checking, inlining and pattern matching
Fixed in RC2:
- Restored the binary-compatible
MurmurHash3.arrayHash(a, seed)#27626 - Auto-tupling works again with a trailing old-style
implicitparameter section #27609
For the full list of changes, see:
If you hit a regression, please report it on GitHub and mention it here.
The stable release is planned no earlier than 24th December.