Re:Ask HN: Which functional programming language is the popu...
by willtim on Friday July 03, 2015 @01:34PM
(#9826849)
Scala is not a functional programming language, it is OO first and foremost. It has better support for functional programming than Java 8, Python or Smalltalk. And that in itself is great.
[ Parent
| on HN ]
Re:Ask HN: Which functional programming language is the popu...
by jbooth on Friday July 03, 2015 @03:16PM
(#9827436)
Java 8 has lambdas and lots of streaming functional comprehensions like map, filter, fold etc.
That sounds like all the functional stuff Scala has, right? What's it missing? Also, since when does 'functional' mean 'algebraic types'? Aren't those completely different things? Are common LISP and Scheme 'not as functional as scala'?
Re:Ask HN: Which functional programming language is the popu...
by willtim on Friday July 03, 2015 @03:39PM
(#9827557)
Yes Java 8 does have a lot of new functional goodness. But it's still missing a lot even compared to Scala. For example I cannot even do a basic case analysis without involving statements, you have the ternary operator for working with expressions and that's about it. Static type systems, type inference and algebraic datatypes, which I believe to be hugely beneficial, do not define "functional programming" in most peoples minds.
Re:Ask HN: Which functional programming language is the popu...
by justthistime_ on Saturday July 04, 2015 @11:38AM
(#9830453)
It's more functional than most languages called "functional".