News for hackers. Stuff that matters.
Re:Applicative Functors by Dewie on Sunday August 10, 2014 @07:45AM (#8159498)
Re:Applicative Functors by eru on Sunday August 10, 2014 @09:07AM (#8159632)
Type classes are built into the language. So they are not really `design patterns' by the original definition of the word.
Re:Applicative Functors by comex on Sunday August 10, 2014 @03:24PM (#8160453)
To be fair, most of these classes come with "laws" instances are supposed to follow, which are not encoded in the language...
Re:Applicative Functors by Fixnum on Monday August 11, 2014 @02:01AM (#8162130)
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.
Re:Applicative Functors by eru on Sunday August 10, 2014 @07:23PM (#8161156)
Good point!
Re:Applicative Functors by Dewie on Sunday August 10, 2014 @10:47AM (#8159848)
That was partly my point, at least for functional languages that can express these concepts, like certain statically typed ones.