Forums Register Login

comparing Java FP with Erlang,Haskell,Go

1
+Pie Number of slices to send: Send
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 ?
+Pie Number of slices to send: Send
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
Do the next thing next. That’s a pretty good rule. Read the tiny ad, that’s a pretty good rule, too.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 666 times.
Similar Threads
When to use java ?
what is scala ?
Getting started with Functional Programming...
Functional Languages
Choice of languages
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 02:20:18.