4 ms·
> Most modern languages are multi-paradigm. [..] And modern Java. Modern Java is still very definitely OOP and not multi-paradigm. Other JVM languages, like Sc
by kllrnohj 2y ago
> Most modern languages are multi-paradigm. [..] And modern Java.
Modern Java is still very definitely OOP and not multi-paradigm. Other JVM languages, like Scala or Kotlin, add more multi-paradigm features to that ecosystem, but modern Java doesn't.
- diroussel 2y agoIt tries to be OOP, but you can still implement a program with int, int[] and static methods. And you can’t subtype those. Other JVM languages, like scala, are more OO than Java.
- tkcranny 2y agoJava has made some big strides here to catch up with the functional and data-oriented features other languages are all adding. I was pretty surprised and impressed to see a modern example lately. There’s Record data types, stronger type inference with `var`, pretty great structural pattern matching, switch expressions (that return a value), stream apis for map, filter, and reduce etc. All of these move it further away from strictly OOP. And separate but still cool is a pretty neat virtual thread system too. Java has definitely had a bit of a glow up since I learned it in uni.