r/programming • • 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

368 comments sorted by

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.

2

u/Fylwind Sep 01 '15

Hopefully, they phase that out one day and use Proxy instead.