5 ms·
I have only marginal experience with both but.. isn't this the case also with java nowadays?
by syats 6y ago
I have only marginal experience with both but.. isn't this the case also with java nowadays?
- MrPowers 6y agoDon't have a lot of Java experience, but think it's backwards compatible, even across major versions, whereas Scala isn't even backwards compatible for minor versions.
- thinkharderdev 6y agoMinor versions are not binary compatible but in general it is trivial to cross-compile for different Scala versions if you are writing a library and SBT makes it pretty simple to use the right binary for your projects Scala version. As the author mentions this sort of breaks down when library authors drop support for older Scala versions. In my experience though that is primarily an issue with Spark being way behind in Scala version support.
- loginatnine 6y agoNot quite, java binaries are backward compatible (but they are not forward compatible). This means that as long as your runtime and build binaries stay relatively recent (by that I mean java 8 and up at this present date), you won't get any compatibility problem.