On Wed, 16 Nov 2022 11:38:10 GMT, Maurizio Cimadamore <mcimadam...@openjdk.org> wrote:
>> Mm, but this is the type of the value of the `ScopedValue` instance. >> So, the type of the scoped value is `ScopedValue<T>`, the type of the value >> is `T`, is it not? > > Right - there's "scoped value" which is the holder, and "value of the scoped > value" which is what has the type T. You are correct that just dropping > "scoped" in there doesn't make things better. Conversely, just leaving > "value" and nothing else (as per PR) is ambiguous. It feels like we need some > way (uniform throughout the javadoc) to speak about "the value associated to > a scoped value instance". I think that's the "bound value" of the instance or the "value bound to" the `ScopedValue<T>` instance. ------------- PR: https://git.openjdk.org/jdk/pull/10952