[External] : Re: Proposal: java.lang.runtime.Carrier
Brian Goetz
brian.goetz at oracle.com
Thu Mar 3 18:29:21 UTC 2022
> For the pattern matching,
> we also need a 'with' method, that return a method handle that takes a
> carrier and a value and return a new carrier with the component value
> updated.
It is not clear to me why we "need" this. Rather than jumping right to
"Here is the solution", can you instead try to shine some light on the
problem you are trying to solve?
> In term of spec, Jim, can you rename "component getter" to "component
> accessor" which is the term used by records.
"Accessor" is a perfectly OK term, but remember, these are not records,
and "record component" means something. I think its OK to use accessor
here, not because its what records do, but because we don't need to give
people the idea that this has something to do with beans.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/amber-spec-experts/attachments/20220303/d3a4e9d8/attachment-0001.htm>
More information about the amber-spec-experts
mailing list