Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

and afaik, .net has record types unlike the jvm (yet) which means java is even worse


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: