~/talk

Contextual Easy, Compile-time String Interpolation Without Macros!

Talkat Scala Italy 2017 · on Saturday, 2017-05-13· [scala]
slides:none on file

Library named contextual gives compile-time validation for custom string interpolators, letting the compiler accept or abort literal patterns (XML, URLs, CSS, JSON, etc.) and enforce where and which types may be embedded. It exposes an extensible embedding API via implicits/type classes, runs a macro-phase early in the build to inspect literals, and produces runtime constructors only for code that passed checks. Claim of “without macros” contradicts the implementation — a macro does run. Version 1.0.1 is available.

AI-written summary · about

  1. 0:00Introduction to contextual
  2. 1:52Basics of string interpolation
  3. 5:50How interpolators compile
  4. 8:24Macros for interpolation
  5. 12:01XML interpolation examples
  6. 21:38Advanced XML checks
  7. 24:03Embedding custom types
  8. 27:10Type class embedding
  9. 29:01Building a URL interpolator
  10. 31:49Defining the interpolator object
  11. 33:15Contextualizing holes
  12. 36:10Runtime interpolation
  13. 38:40Embedding and escaping
  14. 40:23Macro details and trade-offs
  15. 41:26Summary and benefits
  16. 43:55Preventing invalid types
  17. 44:15Resources and Q&A
~/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.