~/talk

Contextual: Enhancing Scala with Your Own Compile-time Checks

Talkat LambdaConf 2017 · 2017-05-25..05-27· [developer-experience]
slides:none on file

Contextual is an open-source Scala library that makes interpolated strings subject to compile-time interpolation checks by running a macro that validates literal parts and maps holes to contexts; it provides a runtime evaluate step, type-class based embeddings, and extension points. Concrete checks include URL parsing, CSS and XML validity, file/classpath existence, and spelling, and failures surface as compiler errors with cursor offsets. Current release is 1.0.1 (escapes via user typeclasses) and v2.0 moves escaping into the interpolator itself.

AI-written summary · about

  1. 0:00Introduction
  2. 3:03Interpolators
  3. 4:21Scala Compiler
  4. 8:40String Context
  5. 14:55Recap
  6. 19:22Classpaths
  7. 20:44Basic Expressions
  8. 21:53Number Failing
  9. 27:01XML
  10. 31:42Context is important
  11. 33:06escaping
  12. 36:08record
  13. 40:13seven steps
  14. 41:36create interpolator
  15. 42:26staticinterpolator
  16. 43:42staticinterpolator example
  17. 45:33interpolator example
  18. 46:23filtrate
  19. 47:46evaluate
  20. 50:12URL encoding
  21. 51:06varargs
  22. 52:05strings
  23. 55:53summary
  24. 56:53conclusion
~/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.