2 ms·
I never said inheritance, or method for that matter. You can do H-M on typeclasses. Philip Wadler has a paper on it and it's alive and well in GHC: http://home
by bhickey 15y ago
I never said inheritance, or method for that matter.
You can do H-M on typeclasses. Philip Wadler has a paper on it and it's alive and well in GHC:
http://homepages.inf.ed.ac.uk/wadler/topics/type-classes.html http://homepages.inf.ed.ac.uk/wadler/topics/type-classes.htm...
The fact that Python allows you to do something absurd is simply an argument against its design.
Edit: Uh oh, looks like I ruffled some snakeskin!
- TylerE 15y agoThe point is you can't just bolt on H-M to a typical scripting language and expect it to work, like, at all. It's a pretty huge sea change, and it would warp the underlying language to the point where you'd just end up with some of non-lazy, non-pure Haskell.