Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Only a Destructuring

The Black Knight has been fully taken apart. Every limb named, default-valued, and bound to a const. He surveys his neatly labelled components with something approaching satisfaction.

“It’s only a destructuring,” he says.

“Your arm’s off!”

“No it isn’t — it’s bound to left-arm. I can (get me :left-arm) any time I like.”

He has a point. Structured disassembly is not injury. It’s the reverse: every piece accounted for, every name in scope, every default in place. The Black Knight who once pretended nothing was wrong now knows exactly where everything is.

That, it turns out, is considerably more useful.