To which language is Scala most similar from a functional programming perspective? -
- standard ml
- ocaml
- haskell
- some other
it similar in power of static type system haskell, though type inferencing severely hampered need support oo-style subtyping. scala lacks higher-rank polymorphism , impredicativity, both of haskell has. on other hand, scala's implicits-based type class mechanism, while more verbose haskell, more flexible.
there many axes on compare, of course; scala's evaluation semantics strict, of ml, whereas haskell lazy.
Comments
Post a Comment