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.

Required fields*

9
  • thanks for taking the time to answer. This would be a great answer on the other questions that I linked to. Unfortunately, this is not suitable for this question. I'll update the OP with clarifications based on the comments. I'm looking more for the use cases where a language-user would want to have the false-negatives when comparing strings. The language provides this feature as consistency, now I would like us to go a step further. Perhaps thinking of this from the new-language designer, is it needed? (unfortunately, no lang-design.SE) Commented Oct 19, 2015 at 20:52
  • 3
    @Anonsage its not a false negative. They aren't the same object. That is all it is saying. I must also point out that in Java 8, new String("foo") == new String("foo") may be true (see String Deduplication). Commented Oct 19, 2015 at 20:52
  • 1
    As to language design, CS.SE advertises that it may be on topic there. Commented Oct 19, 2015 at 20:58
  • ooh, thank you! I will post my future lang-design questions there. :) And, yeah, unfortunately 'false-negative' isn't the most accurate way to describe my question and what I'm looking for.. I need to write more words so people don't have to guess what I'm trying to say. Commented Oct 19, 2015 at 21:03
  • 2
    "Consistency within the language" also helps with generics Commented Oct 20, 2015 at 14:22