News for hackers. Stuff that matters.
Re:The Brittleness Of Type Hierarchies by aphyr on Tuesday May 08, 2012 @01:49PM (#3944917)
I'm in favor of decoupling data structure from interface entirely, via records + protocols. Hierarchies have their place, but ultimately can't deal with cross-cutting concerns. Mixins with structural typing is one way to approach the problem, but for formal contracts I prefer Clojure's approach: http://www.ibm.com/developerworks/java/library/j-clojure-pro...

There are no comments on this comment yet.