Settings

Theme

The curious case of the switch statement

eev.ee

4 points by MindTwister 9 years ago · 1 comment

Reader

lucb1e 9 years ago

That was a great read. I've been thinking of the switch statement recently as well and came to the same conclusion that it's actually kind of useless in most languages' implementations.

Especially the Perl sections were delightful (and I suppose I indeed didn't want to know for Perl 5.)

I hadn't heard of Duff's device yet, interesting!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection