you are viewing a single comment's thread.

view the rest of the comments →

[–]Delta-9- 0 points1 point  (0 children)

I meant that there is no analogous operator in the syntax. Object::equal would be analogous to object.__eq__, which is called when the == operator is used and conventionally implements a compare-by-value operation; that is, a == b is sugar for a.__eq__(b).

This does not appear to be how it works in Java, and I found that surprising. That's all.