Re:Go's power is in emergent behavior
by PeterisP on Sunday April 27, 2014 @06:13PM
(#7657177)
Haskell typeclasses are an interesting way to achieve the same effect explicitly - if your module implements/returns/requires some type, then I can make your type "be" a member of my typeclass (pretty much equivalent of your class implementing my interface) without touching your module or creating a new type; the explicit declaration can be made afterwards to join together two modules that didn't know that the other existed but have types that are similar enough.
[ Parent
| on HN ]
There are no comments on this comment yet.