~/talk

Going structural with Named Tuples

Talkat Scalar Conference 2025 · 2025-03-27..03-28· [scala]
slides:none on file

Scala 3.6 stabilises Named Tuples which add compile‑time labels to tuples, letting code build schemas without macros using the mirror framework, match types, inline ops and compiletime literal-to-value conversion. Demos convert case classes to labeled tuples, generate JSON with upickle, drive a Spark‑style DataFrame aggregation, and run a full‑stack Laminar CRUD app with typed fetch endpoints backed by a log‑based DB — all working live. Key limits: no recursion in literal named tuples and opaque typing blocks some match‑type introspection.

AI-written summary · about

  1. 0:00Named tuples in Scala 3
  2. 1:08Why named tuples introduced
  3. 2:52Structural typing problems
  4. 9:37Named tuple syntax
  5. 11:25Named vs structural types
  6. 13:59Operations and derivation
  7. 16:23Structural type improvements
  8. 17:28Demos and examples
  9. 25:25Tools for named tuples
  10. 26:11Named tuple limitations
  11. 29:21Recursive and match types
  12. 30:04Conclusion
~/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.