RFR: 8351565: Implement JEP 502: Stable Values (Preview) [v33]

Maurizio Cimadamore mcimadamore at openjdk.org
Wed Apr 2 21:40:14 UTC 2025


On Wed, 2 Apr 2025 14:07:45 GMT, Viktor Klang <vklang at openjdk.org> wrote:

>> src/java.base/share/classes/java/lang/StableValue.java line 50:
>> 
>>> 48: 
>>> 49: /**
>>> 50:  * A stable value is a holder of shallowly immutable content that can be lazily computed.
>> 
>> This reads as if the content can only be shallowly immutable (not deeply immutable).
>> 
>> How about saying "effectively immutable" instead?
>
> Or "observably immutable"? 🤔

or... "immutable"

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/23972#discussion_r2025638907


More information about the core-libs-dev mailing list