3 ms·
As far as I remember from a post of Brian Goetz changing the existing Optional type is exactly the plan! So, Optional will become a zero-cost abstraction™ in Ja
by cryptos 4y ago
As far as I remember from a post of Brian Goetz changing the existing Optional type is exactly the plan! So, Optional will become a zero-cost abstraction™ in Java.
https://cr.openjdk.org/~briangoetz/valhalla/sov/02-object-model.html#migrating-value-based-classes-to-inline-classes https://cr.openjdk.org/~briangoetz/valhalla/sov/02-object-mo...