~/talk

Say goodbye to implicits contextual abstractions in Scala 3

Talkat ScalaCon 2022 · 2022-10-04..10-07· [scala]
slides:none on file

Scala 3 removes the implicit keyword and replaces it with given/using for contextual values, extension methods for adding methods to closed types, and scala.Conversion for implicit conversions, while replacing implicitly with summon and adding import syntax like .given and given,*. Code examples show Future using an Executor via using/given, typeclass instances declared with given and summoned with summon, conversions via scala.Conversion, and clearer compiler errors; sample repos for Scala 2 and Scala 3 compile and demonstrate the improved, more explicit behavior.

AI-written summary · about

  1. 0:00Introduction and overview
  2. 2:40Problems with Scala 2
  3. 6:40Introduction to Scala 3
  4. 8:40Providing context
  5. 11:14Extension methods
  6. 14:31Type classes
  7. 20:51Implicit conversions
  8. 23:28Implicit imports
  9. 25:32Unused names
  10. 27:58Compiler error improvements
  11. 29:40Migration strategy
  12. 30:53Conclusion and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.