To which language is Scala most similar from a functional programming perspective? -


  1. standard ml
  2. ocaml
  3. haskell
  4. 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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -