Java is becoming more like Rust, and I am here for it
joshaustin.tech
Java is becoming more like Rust, and I am here for it
1–10 of 71 posts
Re: Java is becoming more like Rust, and I am here for it
#2Re: Java is becoming more like Rust, and I am here for it
#3We have languages like Haskell and, before it, ML. And I know ML didn’t invent it. We also have Scala, and for Scala, we don’t even have to leave the JVM. There’s also F#, which is a kind of cousin-of-a-cousin to Java.
Rust has sum types and immutability because tons of people thought these features were important, and lots of languages adopted them in parallel with the appearance of Rust.
Re: Java is becoming more like Rust, and I am here for it
#4Record types, immutable after construction: https://www.c-sharpcorner.com/article/c-sharp-9-0-introducti...
Warning when a switch isn't exhaustive: https://learn.microsoft.com/en-us/dotnet/csharp/language-ref...
Re: Java is becoming more like Rust, and I am here for it
#5Re: Java is becoming more like Rust, and I am here for it
#6Re: Java is becoming more like Rust, and I am here for it
#7Re: Java is becoming more like Rust, and I am here for it
#8Once projects Valhalla and Panama land Java will be transformed again. Exciting times.
Re: Java is becoming more like Rust, and I am here for it
#9The article is using immutable records and sum types as “more like Rust” and I am just sitting in the corner, wondering whether everyone has forgotten that these things came from FP in the first place. In my mind, a language isn’t “Rust-like” because it uses concepts we learned in FP. We have languages like Haskell and, before it, ML. And I know ML didn’t invent it. We also have Scala, and for Scala, we don’t even ha…
> I would not be surprised if Kotlin and/or Scala were more influential in bringing this to life.
But yeah, I agree, generally weak article. I don't think it shows that "Java is becoming more like Rust" at all, because of the two listed features.