InfoQ Homepage   	  		  			  			                  News                 		  		Scala 3 Overhauls Language for Better Developer Experience

Scala 3 Overhauls Language for Better Developer Experience

submited by
Style Pass
2021-06-24 16:30:07

InfoQ Homepage News Scala 3 Overhauls Language for Better Developer Experience

Eight years in the making with 28,000 commits, 7400 pull requests, and 4100 closed issues, Scala 3.0 has been released, delivering a "complete overhaul of the Scala language" with new features, updates to the syntax and type systems, and new tools for metaprogramming. The Scala compatibility reference heralds version 3 as a "game changer [...] that will greatly improve the day-to-day experience of every Scala programmer". Scala 3 is binary backwards-compatible with Scala 2.13, but not fully source-compatible. The new Dotty compiler can automatically migrate old code and report any remaining issues.

Scala 3.0 is more concise with its new syntax. The new keyword is now optional (similar to Google having introduced this feature in Dart 2.0), as are parentheses in expressions of control structures. Some occurrences of curly braces may be replaced with source code indentation, a well-known feature of Python.

Leave a Comment