Towards a JSON API for the JDK
Brian Goetz
brian.goetz at oracle.com
Fri May 16 12:53:18 UTC 2025
On 5/15/2025 5:27 PM, Remi Forax wrote:
> It's not clear to me why JsonArray (for example) has to be an interface instead of a record ?
Oh, you know the answer to this. A record limits us to a single
implementation with a rigid representation. Behind an interface, we can
hide lazy parsing and inflation, wrapping other representations to
reduce copies, etc.
More information about the core-libs-dev
mailing list