Why does `ScopedValue.where(SCOPE_VALUE, val).call()` throw Exception?

Andrew Haley aph-open at littlepinkcloud.com
Thu Apr 13 10:45:56 UTC 2023


On 4/13/23 11:23, Holo The Sage Wolf wrote:
> As a side note, generally I'm a bit disappointed

You and everybody else.

> from the state of
> exceptions with generics in Java, not too long ago I talked about it in (I
> believe) the Amber mailing list about possible improvements in the future.

I've spent a fair bit of time discussing this kind of thing with Brian Goetz
et al., and it's just a very hard problem. Any "Hey, let's do this!" probably
will have some unfortunate side effects somewhere.

Do you have a way to help me find that Amber discussion?

-- 
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