9 ms·
right but type classes are basically vtables aka dictionary passing but the compiler figures out which dictionary to summon for you but the key is they build s
by whateveracct 2mo ago
right but type classes are basically vtables aka dictionary passing but the compiler figures out which dictionary to summon for you
but the key is they build seamlessly on top of real parametric polymorphism. you still get a real "forall a." in your proposition language.
Go fucked up early on with their core language design due to an inability to learn from the 1970s so now it's terminally dookie sadly
- foldr 1mo agoType classes are nice, yes, but SML doesn’t have them, or anything that can really stand in for Go’s interfaces.