3 ms·
>Maybe if this guy had cared enough to do a five second google he'd realize that Scala doesn't use hindley-milner type inference. That's his point. Scala does
by asdasf 13y ago
>Maybe if this guy had cared enough to do a five second google he'd realize that Scala doesn't use hindley-milner type inference.
That's his point. Scala doesn't use HM and it needs to. He says the reason it doesn't is because of the JVM, which seems misguided.
- quatrevingts 13y agoHe states that H-M is not used because of the lack of reified generics, which is completely irrelevant. (Hint: type systems perform analysis at compile time; "reified generics" means having type arguments available at run-time.) H-M is not used because it is not compatible with subtyping or method overloading, which are both critical for Java interop. There is no particular reason that Scala needs to use exactly the H-M system.