JEP draft: Scope Locals

Alex Otenko oleksandr.otenko at gmail.com
Sat May 15 12:31:58 UTC 2021


The answer to that is implementation-specific. (What ScopeLocal does when,
what is visible through ScopeLocals)

I would say it probably is not different from
ScopeLocal.when(...).run(try...finally...), but offers different
composability.

Alex

On Sat, 15 May 2021, 11:35 Andrew Haley, <aph at redhat.com> wrote:

> On 5/15/21 10:10 AM, Alex Otenko wrote:
> > ScopeLocal.where(...).run(...).finally(...) would be nice.
>
> Is that different from try ... run ... finally ?
>
> --
> Andrew Haley  (he/him)
> Java Platform Lead Engineer
> Red Hat UK Ltd. <https://www.redhat.com>
> https://keybase.io/andrewhaley
> EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
>
>


More information about the loom-dev mailing list