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

Nobody Expects Pattern Matching

The Inquisition has finished its enumeration. Cardinal Naggum is out of fingers again. Cardinal Klabnik has started using toes. Cardinal Friedman is maintaining a quietly sceptical silence.

if,” Cardinal Naggum says, consulting his notes. “while. for. for-of. switch. try. catch. finally. break. continue. throw. label.”

He looks up. “That’s twelve.”

“Thirteen, Your Eminence,” says Cardinal Friedman. “do-while.”

“Thirteen. And match replaces—”

“Most of them, Your Eminence.”

The door closes. The door reopens.

“NOBODY—”

The chapter ends.