~/talk

Functional Error Handling in Python

Talkat LambdaConf 2018 · 2018-06-03..06-05· [python]
links:none on file
slides:none on file

A tiny Pythonic library implements Option Try Either inspired by Scalaz, used to replace seven-deep nested ifs and multiple try/catch exits in a fixed‑length parser; class construction makes a Try instantiation return the proper Success/Failure child type on exception; generator comprehensions implement a do construct that composes flatMap/map logic so composed parses short‑circuit on first failure; library is pip‑installable and the rewrite improves readability and error flow without changing surrounding Python usage.

AI-written summary · about

  1. 0:00Intro
  2. 2:50Programming languages
  3. 4:18Python
  4. 5:12Scala
  5. 6:07Closure
  6. 8:05Feature flags
  7. 9:19Rewriting code
  8. 11:02Scala vs Python
  9. 11:59PI
  10. 15:22Flatmap
  11. 17:01Try
  12. 18:06Scala Implementation
  13. 19:11Python Implementation
  14. 21:44PopMap
  15. 22:34Partial
  16. 24:40Generator comprehension
  17. 26:26Closures
  18. 29:03Goals
  19. 29:58Library
  20. 30:21Performance
  21. 32:28Types in Python
  22. 33:52Why Python
~/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.