Re:Evil Coding Incantations
by catnaroek on Monday December 25, 2017 @10:02PM
(#16006819)
Blessing noncanonical structures and mappings is indeed evil. Let's take this to its logical conclusion and banish type classes.
[ Parent
| on HN ]
I'm not sure what you mean by that. Type classes are all about making canonical structures explicit.
Type class instances are only “canonical” by fiat. Once you elaborate type classes into record-passing, by no means are the resulting instance types uniquely inhabited.
This is just as bad as the existence of truthy or falsy values.