Hacker News new | ask | show | jobs
by melling 1731 days ago
Have the ergonomics of Scala improved with version 3?

I‘m planning on revisiting Scala at some point

2 comments

Yes, a large part of Scala 3 was explicitly about improving ergonomics and making language features clearer to use. Some examples of this are:

- Greatly improved error messages [1]

- Revamped implicit syntax that makes it more straightforward to declare type classes and extension methods. [2]

- Simplified support for macros [3]

[1] - https://www.scala-lang.org/blog/2020/05/05/scala-3-import-su...

[2] - https://dotty.epfl.ch/docs/reference/contextual/type-classes...

[3] - https://docs.scala-lang.org/scala3/guides/macros/index.html

optional braces if you are into that sort of thing. https://docs.scala-lang.org/scala3/reference/other-new-featu...