Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why is scala used when same results can be achieved by Java 8 functional programming?  RSS feed

 
Ranch Hand
Posts: 998
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The functional programming of Scala is also possible in java 8 with lambda expressions. Why is scala used when same results can be achieved by Java 8 functional programming?
thanks
 
Saloon Keeper
Posts: 4552
112
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Scala predates Java 8, so there was a lot of Scala in use before Java ever had these capabilities. But Scala does way more than lambda expressions, so using Java 8 is not a full substitute.
 
Monica Shiralkar
Ranch Hand
Posts: 998
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
He's dead Jim. Grab his tricorder. I'll get his wallet and this tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!