Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

comparing Java FP with Erlang,Haskell,Go

 
Ranch Hand
Posts: 1907
1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Venkat,

Today many systems,software written in Java(JVM languages). Recent popularity of Haskell,Erlang,Scala is attributed to their functional features. Scala- Actor model,Erlang-lightweight processes,List comprehensions etc.
What are the advantages of FP in Java over features offered by these languages ?
 
Author
Posts: 109
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Arjun,

The main advantage of the ability to program in functional style in Java compared to those other languages is that we get to use Java in a better way if we're already using it.
In other words, I would not be choosing Java to do functional programming, for an arbitrary application on hand, if I truly had a choice of these languages you've mentioned.

Instead I would be choosing to program functionally moving forward in systems that are currently programmed in Java. In other words, my interest in functional programming in
Java is not about how I would use it compared to other languages, but why I would use it in comparison to how I have been using Java before 1.8.

Thanks,

Venkat
 
    Bookmark Topic Watch Topic
  • New Topic