2 ms·
> Handling JSON as a basics for language? Yes, even Mark Reinhold admitted that in the last "Ask the Architects" interview. >null restricted type will come wi
by vips7L 10mo ago
> Handling JSON as a basics for language?
Yes, even Mark Reinhold admitted that in the last "Ask the Architects" interview.
>null restricted type will come with valhalla
Will they? It's been 10+ years of Valhalla. Why is a compiler construct even behind project Valhalla? Kotlin has showed you don't need it to do them.
> string templates had a try
Yes they were over engineered and they failed to deliver a basic feature.
> Java is not a small language that you can throw features around, they have to take into consideration final goal of it and decades of development.
Yes I agree, but it shouldn't take YEARS to ship anything. 11 years for a JSON api?! Come on.
- krzyk 10mo ago> Yes I agree, but it shouldn't take YEARS to ship anything. 11 years for a JSON api?! Come on. Anything? Or maybe something that you specifically want? It added records when I wanted them, it added streams and lambdas. I don't care for string templates (I thing those are ugly in any language). null-restricted types would be nice but you have to understand that designing a language is not throwing every possible feature on top of it (like kotlin and resulting lack of readability it has and hard time updating to newer JDK), you have to design it, think of the possibilities, what users really want etc. Valhalla type system results in addition of null-restricted types, as a natural evolution of the language.