~/talk

Journey to the Heart of the For-Yield

Talkat Pacific Northwest Scala 2013 · on Sunday, 2013-10-27· [frontend-architecture]
slides:none on file

Explains that Scala's for-comprehension is syntactic sugar that desugars to flatMap and map/filter so the same pattern works for List, Option, Try and Future; demonstrates with concrete code: a nested loop turned into map/flatten then flatMap, a postcard-sending example, a dinner-planner that halts on missing ingredients, and Futures that run some lookups in parallel; shows Try wrapping exceptions instead of throwing; points to Iteratees, IO and Reader/Writer/State as additional monads; examples compile and behave as described.

AI-written summary · about

  1. 0:00Introduction
  2. 1:00Functional Programming in Scala
  3. 4:25The ForYield
  4. 8:27Generics
  5. 10:27List of Lists
  6. 14:55Lists
  7. 16:57Options
  8. 17:16Map
  9. 23:41Call Blocking
  10. 24:07Future
  11. 25:37Postcard
  12. 26:31Other M words
  13. 27:54Objections
  14. 30:28Conclusion
~/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.