7 ms·
> That said, I did hear Java is getting value types soon, or something like that. Java has had records (the thing that's like Lombok) since Java 14. What Java
by derefr 5y ago
> That said, I did hear Java is getting value types soon, or something like that.
Java has had records (the thing that's like Lombok) since Java 14.
What Java is soon getting is inline value types, i.e. datatypes that work like primitives (are pass-by-value; have no identity but rather structural equality; are freely copyable; can be held on the stack, or intrusively within a containing array; etc.)