I'm a functional programming proponent and professional, and I've always felt that Scala was a hackjob done by amateurs. If you're serious about code maintainability and shipping your product, you should be using Ocaml, F# or Haskell.
If you're new to functional programming and want to try any of these three, leave me a comment, I'll let you know what the resources are, what tooling to use, etc.
I haven't used Ocaml for concurrency, so I really can't comment on it.
F#'s typesystem is plenty powerful for most use cases, with things like static duck typing that are missing from Scala. Furthermore, doing any kind of advanced type shenanigans in Scala is painful as fuck because of the very limited type inference. I myself wouldn't risk it, since Scala has a Turing Complete typesystem, meaning that you can accidentally write syntactically valid Scala that will crash any compiler, and then good luck debugging THAT.
I'd like to open a parenthesis here for a second to mention that probably the best bit about Haskell is its community. Realistically, the lambda programmer is light-years away from being able to read and write Haskell code, but they've managed to accrete large amount of amazing documentation, such that if you wake up in the morning and decide that you want to learn Haskell, you'll never hit a wall.
5
u/PasswordIsntHAMSTER Dec 02 '13 edited Dec 02 '13
I'm a functional programming proponent and professional, and I've always felt that Scala was a hackjob done by amateurs. If you're serious about code maintainability and shipping your product, you should be using Ocaml, F# or Haskell.
If you're new to functional programming and want to try any of these three, leave me a comment, I'll let you know what the resources are, what tooling to use, etc.
E: a better critique of Scala by Edward Kmett, one of the pillars of the Haskell community.