~/talk

Implicits Inspected and Explained

Talkat Scala Days Berlin 2016 · 2016-06-15..06-17· [scala]
slides:none on file

Explains how Scala implicits are resolved (local simple name, then companion objects of involved types and their supertypes) and shows practical effects: actor implicit sender, Futures’ implicit ExecutionContext, and Finagle’s builder failing at compile time with a custom missing-implicit error. Demonstrates implicit conversions, implicit class enrichment, REPL-driven examples, javap bytecode inspection (no magic after compilation), and a working JSON type-class implementation using implicit writers and map serialization while warning that implicit conversions can silently change semantics.

AI-written summary · about

  1. 0:00Scala implicits introduction
  2. 2:17What implicits enable
  3. 3:23Common implicits use cases
  4. 9:29Implicit parameters
  5. 12:42Implicit resolution rules
  6. 17:03Implicit conversion risks
  7. 21:01Implicit classes for enrichment
  8. 22:54How compiler resolves implicits
  9. 28:45Type classes with implicits
  10. 31:59JSON serialization comparison
  11. 40:38Summary and best practices
~/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.