~/talk

Do You Even Macro?

links:none on file
slides:none on file

Explains how Scala 3 macros actually work: macros are written as inline methods that quote code, run a transformation, then splice results back; require import scala.quoted. and a given Quotes context and must live in a separate file. Shows extracting compile‑time constants (40 + 2), using valueOrAbort for errors, pattern‑matching and deconstructing expressions and types (options, chained list maps), and even synthesizing types or reading schemas at compile time — demos compile and produce the transformed code or a descriptive compile error.

AI-written summary · about

  1. 0:00Scala 3 macros intro
  2. 4:36Metaprogramming and ASTs
  3. 8:08Macro phases in Scala 3
  4. 11:17First macro demo
  5. 16:15Pattern matching in macros
  6. 21:19Advanced macro use cases
  7. 26:41Q&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.