Exceptional: Staying on the Happy Path
summary
Exceptional is a library that treats Elixir exception structs as first-class, letting exception structs flow through pipelines instead of forcing tagged tuples or uncontrolled raises. It provides operators like the squiggly arrow to propagate structs without calling, a raise operator (triple-arrow) to explode on encountered exceptions, and helpers to wrap bang functions into safe versions. Demo shows File.read! wrapped to return an exception struct, Plug status and Dialyzer types supported, and both non‑raising and bang APIs generated with the “deaf bang” helper.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker intro
- 1:58Air handling basics
- 3:03Introducing Exceptional library
- 13:07Library philosophy and goals
- 20:26Exception structs in Elixir
- 23:17Utility functions and operators
- 27:15Benefits of Exceptional
- 31:17Handling dangerous functions
- 33:52Generating safe and bang functions
- 35:17Interoperability with others
- 37:23Monads and library comparisons
- 38:46Q&A session
related talks
20mError-free Elixir
47mGood behaviour: Cultivating Healthy Elixir Teams & Codebases
44mIdioms for Building Fault-tolerant Applications with Elixir
41mIdioms for building fault-tolerant applications with Elixir
51mPipe Dreams - Getting More out of Elixir Pipes
32mElixir for the rubyist
37mElixir - functional, concurrent, distributed programming
52mKeynote: Pilgrim's Progress to the Promised Land
