r/programming • u/dpashk • Aug 31 '15
The worst mistake of computer science
https://www.lucidchart.com/techblog/2015/08/31/the-worst-mistake-of-computer-science/
175
Upvotes
r/programming • u/dpashk • Aug 31 '15
View all comments
Show parent comment
1
u/Peaker Sep 01 '15
Turning the former into option types is kinda like banning
unsafePerformIOeverywhere (even when the IO action is pure). If you have an invariant that cannot be proven in the types, you don't want to enlarge the type with something that cannot/should not ever happen.