~/talk

Delimited dependently

Talkat Scalar Conference 2015 · on Saturday, 2015-04-11· [scala]
slides:none on file

Scala code uses an imported mode to turn ordinary APIs into checked-exception APIs with almost no call-site syntax, implemented with implicits and type-level tricks from Rapture and TMaps. Methods return a Result that encodes distinct exception types (DataGetException, ReadException, ParseException, ValidationException) and composes them across flatMap by treating intersection types as intersection-as-union, letting for-comprehensions accumulate errors for validation-style aggregation. Demo shows JSON extraction collecting multiple missing-field errors and a quick rapture-i18n demo using Google Translate for missing locales.

AI-written summary · about

  1. 0:00Start
  2. 5:36Modes: Returning Option
  3. 6:06Modes: Returning Try
  4. 6:19Modes: Returning Future
  5. 6:49Modes: Returning Either
  6. 8:09Why use modes?
  7. 9:39Reminder: Exceptions in Java
  8. 13:14Scoping
  9. 16:40Return: A tri-state return type
  10. 18:11Accumulating example
~/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.