Why would adding structural types/functions add burden to developers?
Structural types can coexist with nominal types. If one wants to keep using CharToObject<T> fine, another class to shove into some commons/utils project of the codebase.
While I agree that some stuff are meant to fit in the context of a language and doing it in java would be clumsy, others are well estabilished and java is just lagging behind.
It doesn't take a phd to implement null safe navigation, it is easier than pattern matching. Is this a case of overthinking or "wanting to do things differently?"
As for budget...IDK, Oracle's jdk budget is probably the largest out there in programming language investment landscape. Factoring out the VM part, which must be huge, I guess what is left for the Java is still significantly bigger than what kotlin, scala, elixir, etc, have at their disposal.
I like Brian's defensive/phylosophical approach to language evolution, yet sometimes it feels like he is THE GUY hindering the progress. Is he just a frontman figure that echoes the consensus of other Java Architects or is he a dictator that has the last world of what (not) makes into the language?
The problem is that structural types solve some problems and cause others. A well known problem they cause is inscrutable error messages, like the ones we see in Haskell and even TypeScript.
As for budget, it's not about the development budget but the "complexity budget" of the languages. Many developers like languages that are very feature-rich, but many don't. On average, I think that the relatively simpler languages also tend to be more popular. We'd like to keep Java closer to the simpler end of the spectrum. You are absolutely correct that Scala, Rust, Kotlin, and C# are richer languages, but they're also much less popular languages, and we are indeed trying very hard to keep Java from turning into such a language. You call that "progress", but I disagree. For one, a language can still evolve and grow only slower. Second, there are other ways of making progress without adding so many language features. For example, I think virtual threads are more advanced than async/await, and C# significantly hindered its own progress by adding that language feature. I also think Zig is more advanced than Rust even though it has like a tenth of Rust's features. Or, going back to Java, a very advanced JIT is able to make simpler and more general abstractions, such as virtual dispatch, competitive with the selection of narrower abstractions that C++ or Rust have to offer because their compilers are more limited in the optimisations they can apply.
View all comments
-7
u/flawless_vic 7d ago
Why would adding structural types/functions add burden to developers?
Structural types can coexist with nominal types. If one wants to keep using CharToObject<T> fine, another class to shove into some commons/utils project of the codebase.
While I agree that some stuff are meant to fit in the context of a language and doing it in java would be clumsy, others are well estabilished and java is just lagging behind.
It doesn't take a phd to implement null safe navigation, it is easier than pattern matching. Is this a case of overthinking or "wanting to do things differently?"
As for budget...IDK, Oracle's jdk budget is probably the largest out there in programming language investment landscape. Factoring out the VM part, which must be huge, I guess what is left for the Java is still significantly bigger than what kotlin, scala, elixir, etc, have at their disposal.
I like Brian's defensive/phylosophical approach to language evolution, yet sometimes it feels like he is THE GUY hindering the progress. Is he just a frontman figure that echoes the consensus of other Java Architects or is he a dictator that has the last world of what (not) makes into the language?