Scoped Value orElse?

Josiah Noel josiahnoel at gmail.com
Wed Mar 29 05:03:04 UTC 2023


isBound is pretty good, but it'd be nice to have something like optional's
orElse methods to smoothly retrieve a fallback value if the scope is
unbound. I see we already have orElseThrow.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20230329/5fa0836a/attachment.htm>


More information about the loom-dev mailing list