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

Maurizio Cimadamore mcimadamore at openjdk.org
Fri Apr 4 11:10:08 UTC 2025


On Fri, 4 Apr 2025 10:18:27 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> I agree with this observation. We should look at providing true partial functions using for example `Optional`.
>
> Btw, I believe for now we should just "note" the issue, and move one. Let's have the javadoc reflect what the impl really does. We have good ideas on how to address this, so we can either follow up with a CSR post-integration, or we can address this in the next round of preview

(That said, perhaps the javadoc would be better off in showing examples that did not rely on totalizing partial behavior. The examples in the JEP don't do that, and so doesn't fibonacci. We should find a couple more like those).

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

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


More information about the core-libs-dev mailing list