What's coming in Scala 3
summary
Scala 3 shows concrete, testable changes for migrating Scala 2: @main for top-level mains and optional whitespace/block syntax, enums that compile to Java enums when possible, traits with constructor parameters, and dropping new for class construction. Contextual abstractions replace implicit with givens and summon for contextual parameters and explicit imports, functions-from-methods work with type params, union/sum types and improved pattern-match exhaustiveness, and inline + compile-time match and error enable typeclass derivation and faster metaprogramming without traditional macros.
AI-written summary · about
chapters (8)
- 0:00Start
- 1:18start writing some code
- 15:43create your own custom patterns
- 16:46define factory methods in a companion object
- 26:30define an extension method
- 27:10terminal coloring
- 31:23find an optional data type
- 40:05thread pool
related talks
29mWhy Scala 3 will be awesome
51mOpening Keynote: New Functional Constructs in Scala 3
29mMaking the Transition to Scala 3
32mAdvanced Features of Scala 3
01h 05mScala 3
01h 04mOpening Keynote: Preparing for Scala 3
49mTen Cool Things You Can Do With Scala 3
30mLessons Learned from 15 Years of Scala in the Wild
