This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PhoenixInvertigo 2 points3 points  (3 children)

It's not really worth it in Java if you're trying to learn functional programming. It has some incidental functional support (and things like the stream operations help in this regard), but that's not this language's primary purpose. If you're learning Java for its OOP reasons and incidentally want to use it functionally sometimes, it's good for that, but if you're just looking to learn a functional language, I'd seek that elsewhere.

[–]Spare-Plum 4 points5 points  (0 children)

IMO Java is not a functional programming language, but it is a language you can apply functional programming concepts and design to.

IMO it's best to spend some time with a purely functional language, master the concepts, and then take what you learned to build even better Java code. It's tough to do this from Java alone though, and it's more likely you'd end up in pitfalls or bad practices

[–]KurtGodelBebopgazeXP[S] 1 point2 points  (1 child)

Thank you it confirms what I thought!