~/talk

Boilerplate Free Validations Using Scala 3

Talkat ScalaCon November 2021 · 2021-11-02..11-05· [scala]
slides:none on file

Library Mazboot implements one‑line newtypes with validation using Scala 3 features and ships working integrations (cats‑parse for parsing, ciris for config). It uses opaque types with upper bounds to expose the row type, provides composable validators with and/or and unapply pattern matching, and extracts a small runtime helper so union types behave like a monad for for‑comprehensions (happy-path). It validates at compile time, keeps runtime values as raw String/Int, avoids per‑value Either allocations, and runs on Scala 3 only.

AI-written summary · about

  1. 0:00Introduction
  2. 0:40Main Syntax
  3. 3:55Types
  4. 8:00opaque type
  5. 14:15interface
  6. 15:37classes
  7. 22:53validate
  8. 25:00and
  9. 30:30Union Types
  10. 38:44Happy Path
  11. 40:24Validation Off
  12. 41:44Sirius Integration
  13. 43:14Summary
  14. 44:54References
  15. 45:54Questions
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.