3 ms·
nullability is directly related to the value classes effort (the top article mentions value classes, and the JEP you linked mentions nullability): in order to g
by bkail 2y ago
nullability is directly related to the value classes effort (the top article mentions value classes, and the JEP you linked mentions nullability): in order to get the most benefit out of value classes, you need some way to express guaranteed non-nullability to avoid needing to encode null (imagine Point[] vs Point![]): https://cr.openjdk.org/~jrose/values/flattened-values.html#implementing-null-channels https://cr.openjdk.org/~jrose/values/flattened-values.html#i...
- xxs 2y ago'Value' classes would be useful in arrays only + some version of direct buffer mapping. All other cases are pretty uninteresting when it comes to performance or memory layouts.