Scala as the new Java?

前端 未结 8 621
梦谈多话
梦谈多话 2021-02-01 02:51

I just started exploring Scala in my free time.

I have to say that so far I\'m very impressed. Scala sits on top of the JVM, seamlessly integrates with existing Java co

8条回答
  •  执念已碎
    2021-02-01 03:19

    Well, the downside is that you have to be prepared for Scala to be a bit rough around the edges:

    • you'll get the odd cryptic Scala compiler internal error
    • the IDE support isn't quite as good as Java (neither is the debugging support)
    • there will be breaks to backwards compatibility in future releases (although these will be limited)

    You also have to take some risk that Scala as a language will fizzle out.

    That said, I don't think you'll look back! My experiences are positive overall; the IDE's are useable, you get used to what the cryptic compiler errors mean and, whilst your Scala codebase is small, a backwards-compatibility break is not a major hassle.

    It's worth it for Option, the monad functionality of the collections, closures, the actors model, extractors, covariant types etc. It's an awesome language.

    It's also of great personal benefit to be able to approach problems from a different angle, something that the above constructs allow and encourage.

提交回复
热议问题