Scope locals
forax at univ-mlv.fr
forax at univ-mlv.fr
Fri May 7 15:19:20 UTC 2021
----- Mail original -----
> De: "Andrew Haley" <aph at redhat.com>
> À: "Remi Forax" <forax at univ-mlv.fr>
> Cc: "loom-dev" <loom-dev at openjdk.java.net>
> Envoyé: Vendredi 7 Mai 2021 17:04:00
> Objet: Re: Scope locals
> On 5/7/21 3:51 PM, Remi Forax wrote:
>> I wonder if it is necessary to allow to register more than one scope local
>> variable before entering the scope in the API given that using a primitive
>> class (from Valhalla) to group the values should be slightly more efficient
>> that using several scope locals.
>
> It definitely would be, but there may well be separate consumers
> using separately-declared scope locals. It's tempting, though.
I do not think it simplify the implementation, as you said, the implementation still need to manage several local scopes, just the API can be simplify.
>
> --
> 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
Rémi
More information about the loom-dev
mailing list