~/talk

Implicit parameters, when to use them (or not)!

Talkat ScalaIO 2022 · 2022-10-27..10-28· [developer-experience]
slides:none on file

Implicits are presented as a concrete tool with rules not mystique: the compiler builds a type→value map, injects values from the current scope or companion objects, and errors on missing or ambiguous matches; use them for an environment pattern (per-request requester ID, clock injected to make tests deterministic) or a type class pattern (Json encoder constraints resolved via companion objects), prefer precise wrapper types and put common implicits in companion objects to keep behavior obvious.

AI-written summary · about

  1. 0:00Introduction
  2. 1:49Implicit parameters intimidating
  3. 2:30Explicit parameters and defaults
  4. 6:46Implicit parameters core
  5. 13:07Environment pattern
  6. 19:47Best practices for environment
  7. 23:40Type class pattern
  8. 34:21Best practices for type class
  9. 37:32Parameter styles summary
  10. 38:12Closing remarks
~/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.