3 ms·
Is it though? just because it has lambdas, does that make it functional?
by weatherlight 5y ago
Is it though? just because it has lambdas, does that make it functional?
- kaba0 5y agoYes. 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.
- weatherlight 5y ago...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.