Recursively comparing

Archie Cobbs archie.cobbs at gmail.com
Tue Feb 27 15:31:55 UTC 2024


I am a native English speaker but I also found this slightly confusing :)

The problem is, for better or worse, the word "recursive" is too closely
associated with the phrase "deep equals" in people's minds.

Maybe it could be clarified a bit: "Other field values—both identity and
value objects— are compared using the == operator. Note that this
definition is recursive in the case of value object fields".

-Archie

On Tue, Feb 27, 2024 at 9:08 AM Remi Forax <forax at univ-mlv.fr> wrote:

> So if 'o' is an identity object, like String, the address will be used and
> if 'o' is itself a value type, like Foo, then == becomes a recursive call.
>
> Is it more clear ?
>

-- 
Archie L. Cobbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/valhalla-dev/attachments/20240227/4273ff6d/attachment.htm>


More information about the valhalla-dev mailing list