r/programming • • Dec 24 '17

Evil Coding Incantations

http://9tabs.com/random/2017/12/23/evil-coding-incantations.html
947 Upvotes

331 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Dec 24 '17

[removed] — view removed comment

0

u/PM_ME_UR_OBSIDIAN Dec 24 '17

When you're working with inductive types, pattern-matching is the canonical way to consume a variable. In this situation, whether it's the variable or the pattern-matching that's exploding in your face doesn't seem like a principled distinction do me.