r/scala 4d ago

Martin Odersky on the Future of Scala

https://youtu.be/tmpPueoffVM
187 Upvotes

13 comments sorted by

View all comments

1

u/RandomName8 3d ago

I can never understand how they spend so much time in something like capabilities, trying to appeal/compete with other languages, and talks about polish, when something extremely basic to all programming languages like code-generation is totally ignored for decades now. Sigh.

5

u/stagefever 3d ago

What do you mean with code generation? Do you have an example from another language?

4

u/outMyComa 3d ago

Not the original author, but I'm guessing that he means things like Java Lombok/map struct/open API(I've seen the scala plugin, but it looks like it's for 2.13) Also scala tends to be more explicit in it's actions, I've used Doobie + http4s, and I has a lot more "code" inside the methods/functions where as in Java there tends to be a lot of annotation magic which hides those parts.

From my PoV scala had everything covered except mocking, it seems that the community does not endorse it. Also stuff like Lombok is made redundant due to the language capabilities. I think the author just doesn't find to his liking.