Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Functional Programming in Scala - drawbacks ?

 
paul nisset
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Scala has been around for a while now. People who use Scala say it is great but it appears the take up is still pretty slow.
Are there any drawbacks to using Scala for a *new* project ,compared to using Java with a framework like Spring ?

thanks ,
Paul
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not see any drawback at all using Scala for new projects. If you think about it for a minute, times again, a Scala code compiles to the JVM which means that should you face any bottle neck using Scala to code a piece of a task, you can pull the plug and start writing imperative Java.
 
paul nisset
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe Harry wrote:I do not see any drawback at all using Scala for new projects. If you think about it for a minute, times again, a Scala code compiles to the JVM which means that should you face any bottle neck using Scala to code a piece of a task, you can pull the plug and start writing imperative Java.


Thanks .
That does make sense.
I guess I didn't make the connection that they use the same compiler.
 
Raymond Tong
Ranch Hand
Posts: 255
2
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Scala uses scalac to compile source file while javac for Java.
Scala is a JVM language that could interoperate with Java on same JVM.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic