RFR: JDK-8285932 Implementation of JEP-430 String Templates (Preview) [v3]
Jim Laskey
jlaskey at openjdk.org
Mon Oct 31 12:39:28 UTC 2022
On Fri, 28 Oct 2022 20:23:26 GMT, Rémi Forax <forax at openjdk.org> wrote:
>> Wrong use case. Think `StringProcessor upper = st -> st.interpolate().toUpperCase();`
>
> Is it that different from`TemplateProcessor<String> upper = st -> st.interpolate().toUpperCase();` ?
>
> People are really used to use <> with the functional interfaces of java.util.function, and you avoid the "two ways" to express the same thing.
Noted
-------------
PR: https://git.openjdk.org/jdk/pull/10889
More information about the compiler-dev
mailing list