Programming with only exceptions!
summary
Builds a toy language called Hurl that uses only exceptions for control flow and claims it can express any computation; implements two forms of exceptions — a destructive hurl and a nonunwinding toss — plus three main features (variables, anonymous functions, exceptions). Shows mechanical translation of Python examples like factorial, ships a standard library and custom licenses, runs as a tree-walk interpreter with OS-limited call stack, and admits toss is buggy and debugging is painful.
AI-written summary · about
chapters (7)
- 0:00The inspiration for Hurl
- 1:15Introducing Hurl
- 3:04Hurl language mechanics
- 5:02Exception handling and examples
- 7:20Standard library and licensing
- 8:20Limitations and philosophy
- 8:57Building tools and conclusions
related talks
14mExample-Based Live Programming for Everyone: Building Language-Agnostic Tools for Live Programming w
01h 01mDeclarative Programming and Education
41mHedy: A Gradual programming language
44mHazel: A Live Functional Programming Environment with Typed Holes
43mVisual-textual functional programming with Luna
45mAbstraction Considered Harmful (and other opinions about writing maintainable code)
40mLessons from two decades of writing bad code
25mCode is a User Interface
