4 ms·
What functional languages is it better than? I'll give you a list of all the FP languages off the top of my head that people use to build stuff: - Haskell - S
by whateveracct 4y ago
What functional languages is it better than? I'll give you a list of all the FP languages off the top of my head that people use to build stuff:
- Haskell
- Scala
- Kotlin (not FP but better than Java at it)
- Clojure
- Scheme
- Common Lisp
- Erlang
- Elixer
- PureScript
- Elm
- TypeScript (not even FP but moreso than Java lol)
I really doubt you can say it's clearly better than even one.
- PaulHoule 4y agoI think Scala is crap. I have frequently seen Scala programs that allegedly use monads for error handling that actually blast right past errors with no handling. That use some kind of snake oil concurrency that never gets the same answer twice (race conditions) but also uses just 2.5 cores on a 8 core machine. (In general few people appreciate the wide range of of concurrency primitives that Java offers. People want to believe that you can write correct and performant concurrent code with a small set of primitives but it just isn’t true.) Books on Scala try to seduce you with examples that look concise but they are all structurally unstable and get an order of magnitude more complex when you change anything. (I’d contrast that to Cold Fusion, PHP, and other poorly regarded languages where I’ve sometimes met a correct program.) I am also unimpressed w/ Kotlin. It beats the pants off JDK 7 but not JDK 19 particularly if you use an IDE that does static analysis.
- dunefox 4y agoF# as well.