~/talk

Hands On Capture Checking with Martin Odersky

Talkat Scala Days 2025 Lausanne · 2025-08-19..08-21· [scala]
slides:none on file

Live coding uses the Scala nightly compiler and local nightly artifacts to exercise the experimental capture-checking feature; concrete examples include a withFile resource example that reliably fails when an OutputStream is captured, and a secret opaque-type workaround where an opaque String must become a case class because pure types cannot carry capture sets. The presenter spends a week learning it, demos code that compiles or rejects as expected, surfaces noisy error messages, and provokes a follow-up PR fixing usability issues after a 1.5‑hour session.

AI-written summary · about

  1. 0:00Introduction
  2. 7:40Capture and implications
  3. 10:35Resource management
  4. 14:09Preventing secret leakage
  5. 21:15Dependent types mechanics
  6. 28:40Transitive capture rules
  7. 32:16Pure types restrictions
  8. 34:24Subcapturing compatibility
  9. 38:49Capture inference
  10. 40:14Q&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.