Re:Applicative Functors
by Dewie on Sunday August 10, 2014 @07:45AM
(#8159498)
http://c2.com/cgi/wiki?AreDesignPatternsMissingLanguageFeatu...
[ Parent
| on HN ]
Type classes are built into the language. So they are not really `design patterns' by the original definition of the word.
To be fair, most of these classes come with "laws" instances are supposed to follow, which are not encoded in the language...
On the other hand, the burden of proof is on the library writer who creates the typeclass instance, not on the end user - possible largely thanks to purity - whereas programmers may expect to re-implement various patterns by hand.
Good point!