Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Top 5 Cool Things about Scala 3 (that are not e...

Top 5 Cool Things about Scala 3 (that are not enums)

Top 5 Cool Things about Scala 3 (that are not enums)

....because of course Scala 3 enums are the coolest!

Daniela Sfregola

April 23, 2021
Tweet

More Decks by Daniela Sfregola

Other Decks in Technology

Transcript

  1. Top 5 Cool Things about Scala 3 that are not

    enums @DanielaSfregola Scala 3 Release Party - April 2021
  2. Hellooooo • Software Engineer 
 living in London UK •

    Scala Lover ❤ • OS Maintainer • Author of 
 "Get Programming with Scala" by Manning
 
 35% OFF with code "scala3party"
  3. 5 - Improved Type Inference Map("Scala" -> 3).map { (k,

    v) => s"$k$v" } Scala 3.0.0 Scala 2.13.4
  4. 3 - Improved Error Messages Arrested Developers What the Scala

    Compiler & Lucille Bluth 
 Have In Common by Fiona Condon, NeScala 2017 https://www.youtube.com/watch?v=78iIbiRwFTM
  5. 3 - Improved Error Messages def echo(str: String): Unit =

    { str } def echoTwice(str: String): String = { echo(str) match { case x: String => s"$x$x" } }
  6. 1 - Compatibility with 2.13 Migrating to Scala 3 is

    easy* ! * if you are using Scala 2.13 * if you don't have macros in your code Scala 3 Migration Guide https://scalacenter.github.io/scala-3-migration-guide