News for hackers. Stuff that matters.
Re:Can Rust Beat JavaScript in 2023? by TexanFeller on Friday April 21, 2023 @09:31AM (#35653464)
Java's type system is anemic compared to modern languages, please don't use it as the point of comparison in typed vs untyped debates.
Re:Can Rust Beat JavaScript in 2023? by kaba0 on Friday April 21, 2023 @06:27PM (#35661077)
If we for some weird reason were to put go as a modern language, than Java is some Haskell :D

But jokes aside, Java’s type system can’t express HKTs, but up to that point it really is surprisingly strong — there is vavr, but I have also personally followed my former “define Haskell basic data types yourself in Haskell” class quite far in it, including Lists, Eq trait, Maybe type, etc.