~/talk

A Field Guide to DSL Design

Talkat Scala.IO 2014 · 2014-10-23..10-24· [frontend-architecture]
slides:none on file

Summarizes practical rules and a working example DSL for data assertions in Scala: builds an imperative, eagerly evaluated mini-language that uses infix/dot syntax, implicit classes to add a should/should be API, contravariant Predicate[T] types, and a sealed trait predicate hierarchy to separate modal vs compound predicates. Covers concrete workarounds—parentheses for chaining, an overload to handle null, implicit lifts for true/false, and adding negative failure messages for negation—and links to GitHub with the actual code that compiles and runs.

AI-written summary · about

  1. 0:00Start
  2. 5:54Examples
  3. 15:19Mode
  4. 23:21Implicit Classes
  5. 25:10Foundation
  6. 31:32Parameterization
  7. 37:21Negation
~/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.