2 ms·
Minor correction - Scala does not have the Hindley-Milner type inference method and for technical reasons it would be very hard to have something similar. Langu
by bad_user 15y ago
Minor correction - Scala does not have the Hindley-Milner type inference method and for technical reasons it would be very hard to have something similar. Languages that do have Hindley-Milner are those from the ML family, like Ocaml, Haskell and F#.
That said, the linked article is pretty cool.
- zbailey 15y agoOops, thanks for correcting me. I think the original article claimed it did use it, or at least something very similar - it looks like Herkou has tweaked their article and pulled that link.
- gtani 15y agoThe codecommit article is a good intro to H-M as in Haskell, OCaml, F#, SML (AKA Damas-Milner by at least one dev I respect), here is codecomit guy re: why Scala can't use HM / DM, rather, Scala is flow-based, or "local type inference". http://scala-programming-language.1934581.n4.nabble.com/scala-Does-scala-use-Hindley-Milner-type-inference-td1997689.html http://scala-programming-language.1934581.n4.nabble.com/scal... http://stackoverflow.com/questions/3689407/disadvantages-of-scala-type-system-versus-haskell http://stackoverflow.com/questions/3689407/disadvantages-of-... http://stackoverflow.com/questions/7234095/why-is-scalas-type-inference-not-as-powerful-as-haskells http://stackoverflow.com/questions/7234095/why-is-scalas-typ... this sentence in OP objectionable Erlang and Clojure: two other functional, concurrency-focused languages which many developers find inscrutable.