Finding the spirit of L-World
john.r.rose at oracle.com
Sat Feb 23 02:57:56 UTC 2019
On Feb 22, 2019, at 11:42 AM, Kevin Bourrillion <kevinb at google.com> wrote:
> I think we should make users write `equals` to test value types. If they write `==`, they are indicating a special situation where they need identity semantics, which don't make sense for value types, and that should be an error.
This sounds like a proposal for the future, but as Brian points
out it is also a constraint on large amounts of generic code
that has already been written.
Let's make the best of op==; it's in our past and the future
of comparison logic in Java is too tightly coupled with the past.
More information about the valhalla-spec-observers