News for hackers. Stuff that matters.
Re:Mio: A High-Performance Multicore IO Manager for GHC [pdf] by seanmcdirmid on Monday August 12, 2013 @09:25AM (#6199030)
And yet, is-a and has-a relationships predominate natural language. Well, it makes sense: natural language is hard to reason about formally also.
Re:Mio: A High-Performance Multicore IO Manager for GHC [pdf] by Tyr42 on Monday August 12, 2013 @12:21PM (#6200011)
The problem isn't that `is-a` is hard, it's the divergence of `is-subtype-of` and `is-subclass-of`. Take a look here, I think it explains it rather well. http://okmij.org/ftp/Computation/Subtyping/
Re:Mio: A High-Performance Multicore IO Manager for GHC [pdf] by seanmcdirmid on Monday August 12, 2013 @11:06PM (#6203788)
I would argue that nominative subtyping is natural (basically sub-classing), since it matches our ability to assign arbitrary meaning and relationships to words, which is incredibly useful when having a conversation. Ya, maybe a set isn't exactly a bag, but close enough. Birds mostly fly, but penguins don't, we can deal with that.

But the main problem with subtyping, nominative or structural, is how it messes up Hindley-Damas-Milner style type inference. But that shouldn't be surprising that an FP theory for type inference wouldn't work well for OOP.