<div dir="auto">Ah, my auto complete wasn't working so I missed it. Carry on.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 31, 2023, 3:01 AM Andrew Haley <<a href="mailto:aph-open@littlepinkcloud.com">aph-open@littlepinkcloud.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 3/29/23 06:03, Josiah Noel wrote:<br>
> isBound is pretty good, but it'd be nice to have something like optional's<br>
> orElse methods to smoothly retrieve a fallback value if the scope is<br>
> unbound.<br>
<br>
Hmmm?<br>
<br>
     /**<br>
      * Returns the value of this scoped value if bound in the current thread, otherwise<br>
      * returns {@code other}.<br>
      *<br>
      * @param other the value to return if not bound, can be {@code null}<br>
      * @return the value of the scoped value if bound, otherwise {@code other}<br>
      */<br>
     public T orElse(T other) {<br>
<br>
-- <br>
Andrew Haley  (he/him)<br>
Java Platform Lead Engineer<br>
Red Hat UK Ltd. <<a href="https://www.redhat.com" rel="noreferrer noreferrer" target="_blank">https://www.redhat.com</a>><br>
<a href="https://keybase.io/andrewhaley" rel="noreferrer noreferrer" target="_blank">https://keybase.io/andrewhaley</a><br>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671<br>
<br>
</blockquote></div>