d
easily think of completng StableValue.| to get a Supplier.
>
--
Mickael Istria
Eclipse IDE <https://www.eclipse.org/eclipseide> developer, for Red Hat
<https://developers.redhat.com/>
On Tue, Jun 17, 2025 at 3:34 PM Maurizio Cimadamore <
maurizio.cimadam...@oracle.com> wrote:
> Note that this is already part of the StableValue API:
> https://download.java.net/java/early_access/jdk25/docs/api/java.base/java/lang/StableValue.html#supplier(java.util.function.Supplier)
>
Yes, that
Thanks for your answer.
> the most minimalistic type to model that would be a Supplier.
Indeed. I mentioned Optional, but as the discussion goes, what could work
instead of an Optional would be a constructor `Supplier.cache(Supplier
computer)` that would cache the computed value. That would be ev
ong feeling that it can be worth having it
evaluated as an alternative in the JEP before things get final.
Cheers,
--
Mickael Istria
Eclipse IDE <https://www.eclipse.org/eclipseide> developer, for Red Hat
<https://developers.redhat.com/>
Hello,
On Fri, Mar 28, 2025 at 12:56 AM Jason Zaugg wrote:
> A GitHub code search reveals this idea is also pursued in [Eclipse JDT](
> https://github.com/eclipse-jdtls/eclipse-jdt-core-incubator/blob/e3fd9a0c74374951d4c91663a6fd52f16f6ee9c6/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/interna