Scope Locals
Andrew Haley
aph at redhat.com
Tue Apr 27 15:59:35 UTC 2021
On 4/20/21 2:20 AM, Jack Firth wrote:
> It seems strange that where() is both a static method on ScopeLocal and an
> instance method on the carrier. Maybe have a separate parameter-less static
> method for starting the chain?
>
> scope()
> .where(x, expr1)
> .where(y, expr2)
> .run(() -> ...);
The method scope() still has to be a member of some class, and you'd
have to specify that somehow. Whatever we do will be slightly strange,
I think.
--
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