RFR - JDK-8203703 String::transform (CSR Review)
Stephen Colebourne
scolebourne at joda.org
Thu Sep 20 13:02:18 UTC 2018
On Wed, 19 Sep 2018 at 14:51, Jim Laskey <james.laskey at oracle.com> wrote:
> HTMLDocument html = `
> <html>
> <body>
> <p>Hello World.</p>
> </body>
> </html>
> `.transform(HTMLDocument::parse);
I can't say I love that parse example, although I can see it having
some use. It does feel a bit like functional excess, and wouldn't be
nearly as pretty if the parser needed some other flags to be passed
in. I think I still favour just returning `String` and naming as
`with`.
Stephen
More information about the core-libs-dev
mailing list