Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
eru
on Aug 10, 2014
|
parent
|
context
|
favorite
| on:
Applicative Functors
Type classes are built into the language. So they are not really `design patterns' by the original definition of the word.
comex
on Aug 10, 2014
|
next
[–]
To be fair, most of these classes come with "laws" instances are supposed to follow, which are not encoded in the language...
Fixnum
on Aug 11, 2014
|
parent
|
next
[–]
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.
eru
on Aug 10, 2014
|
parent
|
prev
|
next
[–]
Good point!
Dewie
on Aug 10, 2014
|
prev
[–]
That was partly my point, at least for functional languages that can express these concepts, like certain statically typed ones.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: