Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Scala incompatible with itself? [duplicate]

Why is Scala binary incompatible between different releases?

like image 202
Mohamed Bana Avatar asked Dec 02 '25 03:12

Mohamed Bana


2 Answers

It has to do with the way traits are compiled, because traits are kind of like interfaces but they can contain implementation. This makes it so it is VERY easy to make changes that don't break source compatibility but break binary compatibility, because when you add a new method to a trait along with an implementation, you have to recompile everything that implements that trait so that they will pickup that implementation. There's probably other issues, too, but I think they're mostly along the same lines.

like image 81
Erik Engbrecht Avatar answered Dec 03 '25 17:12

Erik Engbrecht


Lack of JVM support for Scala-specific features, such as traits mentioned, and the fact that it is actively evolving.

like image 33
Daniel C. Sobral Avatar answered Dec 03 '25 15:12

Daniel C. Sobral



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!