Re:New language features since Java 8 to 17
by weatherlight on Monday October 25, 2021 @09:12AM
(#28987369)
...and therein lies the problem.
having some sort of syntax for lambdas does not a function programming language make.
There's nothing about the Java syntax or design that lends its self to FP. Lambdas were bolted on to the language after the fact..
That's like saying Scheme is Object oriented because its trivial to make objects from closures, and should one decide to go deeper, you could easily define macros for classes, methods, etc.
It's grossly disingenous to call Java functional, or even compare it to other functional programming languages.
Like there is no one definition of most paradigm’s, but what used to be the most FP language, LISPS definitely don’t conform to the more strict FP-definitions like pureness, strong type system, etc. What remains is simply having functions as first class citizens and you can very much save functions into maps or whatever in Java.