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-mo...
https://cr.openjdk.org/~briangoetz/valhalla/sov/02-object-mo...
No comments yet.