Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Where would you put the limit between "an object built from a string" and "basically a string" ? It seems quite an ambiguous definition from the outside API perspective. Does the user of the API actually have to guess the internals to guess the behavior ? Commented Sep 10, 2019 at 23:11
  • @Arthur Semantics of the class/object should provide the clue. And sometimes it is not all that obvious, hence this question. For real value types it will be obvious to anyone. For real strings also. The type should ultimately tell whether a comparison should involve content or object identity. Commented Sep 10, 2019 at 23:59