In Context
summary
Clojure 1.13 adds concrete, composable context checks to map destructuring: check-keys style required variants (!), a missing directive that returns a nested map of missing keys instead of throwing, and selection directives select, all, and excess that deeply produce only the keys needed, defaults filled, or the leftover payload. A new selector macro returns reusable functions for normalization and validation. These features handle nesting, avoid breaking callers, and enable graceful runtime policies for real-world information systems.
AI-written summary · about
chapters (11)
- 0:00Correctness and consistency
- 2:14The nature of static systems
- 3:32Information-oriented programming
- 7:28Mechanism versus information
- 11:20Clojure's design philosophy
- 15:59Addressing dynamic tradeoffs
- 21:55Destructuring and context
- 29:58Enhancing destructuring
- 34:40Selection and conveyance
- 44:15Graceful failure handling
- 48:38Programmable selectors
