4 ms·
Or make == call .equals and add a .referenceEquals method for the case where you actually want to check for reference equality. This is what Scala and C# do.
by cdmckay 12y ago
Or make == call .equals and add a .referenceEquals method for the case where you actually want to check for reference equality.
This is what Scala and C# do.
- lmm 12y agoThat would indeed be nice, but is incompatible with Java's approach to backwards compatibility.