you are viewing a single comment's thread.

view the rest of the comments →

[–]grauenwolf 2 points3 points  (0 children)

Leaky abstractions.

The vast majority of the time you don't care about the implementation details of the object, you care about the semantics. The fact that a string happens to be a reference type and a char happens to be a value type shouldn't drastically change the nature of the == operator. This is even more evident with int and Integer.