Scala 3 moves to candidate stage release

Credit: Kevin (C00)
Scala 3, the next planned object-oriented version, Functional language with JVM and JavaScript runtimeHas moved to the release candidate stage with type parameter enhancements and syntactic improvements.
The· Scala 3 RCIntroduced on February 17th, last-minute polishing and cleanup will take place. The user experience has been improved and the metaprogramming framework has been enhanced. Scala has both JVM and JavaScript runtimes and is arranged to be used to build high performance systems with access to the library ecosystem.
The improvements to Scala 3 RC1 are:
- Extension type parameters can be combined with the method’s own type parameters.
- Change to
import
The syntax is created and the wildcards are imported_
Will be replaced by*
And rename operator=>
Will be replaced byas
.. - The syntax of vararg splces has changed with pattern and function arguments.The new syntax uses a suffix
*
Instead of: _*
, Vararg Similar to how to declare parameters. - Since RC 1, Scala no longer generates parent functions for case class companions
Prior to the release candidates, the improvements covered in Scala 3 are:
- Compiler optimization.
- Support for Scala’s Scala.js JavaScript implementation. This includes support for non-native JS types and support for JS interoperability.
- For pattern binding
as
Is allowed instead of@
.. Starting with Scala 3.1, the @ syntax has been deprecated. - Syntax changes aimed at simplifying the code instead of being used by developers
import
p.{given _}
, Use importp.given
.. - The metaprogramming API has been unified.
Scala 3 moves to candidate stage release
Source link Scala 3 moves to candidate stage release