Hacker News new | ask | show | jobs
by agumonkey 1754 days ago
and afaik, .net has record types unlike the jvm (yet) which means java is even worse
2 comments

I think you mean structs (value types. Will be called primitive types in Java). Records are not too interesting from a performance pov (and java has them, and I think they actually predate c#’s), though java will likely be able to optimize serialization/deserialization of records better.
Java recently added record types.
did it land in a release ? i thought it was still at review proposal
In openjdk 16 IIRC.