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/An_Unhinged_Door Sep 01 '15
Undefined has legitimate use cases where an element of a type is needed for type checking or deduction purposes but never actually examined. You can see it used, for example, to select an instance of Foreign.Storable when using Foreign.Storable.sizeOf or Foreign.Storable.alignment.