• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why Java for Functional Programming  RSS feed

 
Lloyd Meinholz
Author
Greenhorn
Posts: 17
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Venkat,

Why would a developer choose to use Java for functional programming instead of using another JVM language like Scala or Clojure that are more or less functional by design?

Congratulations on the book! I love your groovy books.
 
Venkat Subramaniam
Author
Ranch Hand
Posts: 109
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lloyd,

Thank you.

I don't think we would pick any particular language specifically for functional programming. That's much like we would not be picking any particular language for OOP, for example.
The reason we pick a language will have to be far beyond the paradigm it supports, various combination of things would influence that decision.

If we're using Java already, there is a much better way to program in that language now. I hope programmers using Java will choose and judiciously mix the functional style now available in Java with the style that has been the de facto standard for years.

Thanks,

Venkat
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!