4 ms·
Scala is significantly more powerful than both Kotlin or Java 11. Why would you want to use either instead of Scala?
by mruts 7y ago
Scala is significantly more powerful than both Kotlin or Java 11. Why would you want to use either instead of Scala?
- solidsnack9000 7y agoInteroperability and default non-nullability are both advantages of Kotlin.
- pjmlp 7y agoInteroperability leaves a bit to be desired though. Try to use Kotlin sequences, co-routines, lambdas (not SAM types) or operators from Java code.
- mckinney 7y agoQuite a lot of shops choose not to use Scala because of the power. For instance, I can easily write Haskell-like code with Scala and build DSLs galore, which for me is great. But what happens when you need to hire more developers? That's the rub.
- mruts 7y agoYou probably are better off not hiring those developers, then.
- apta 7y agoSlow compilation and build tools (scalac and sbt), buggy/overlycomplex standard lib, interoperability, better IDE support in alternatives, academia oriented.
- pjmlp 7y agoBecause Java is the systems language of the platform. I don't want to bother with extra layers or be bound to JetBrains tooling.
- mruts 7y agoScala isn’t another layer, it compiles to JVM bytecode. Also, what does Scala have to do with JetBrains?
- pjmlp 7y agoTry to use Scala from Java to see how those bytecodes look like. It is another layer exactly because you need to translate back those bytecodes into Scala semantics when debugging, when everyone wraps Java libraries into Scala idiomatic wrappers. I was referring to Kotlin regarding JetBrains.