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*

10
  • 12
    "In many programming languages, the two operators '<>' and '!=' are interchangeable." Are they? Most I know, there is either one or the other. Commented Sep 15, 2017 at 15:28
  • 1
    I've only seen <> and != together in SQL. Are there other languages that do it? Commented Sep 15, 2017 at 15:30
  • @Blrfl PHP, see: php.net/manual/en/language.operators.comparison.php Commented Sep 15, 2017 at 15:32
  • 9
    PHP is the special child. Source: been programming in PHP for a long time. Commented Sep 15, 2017 at 15:34
  • 2
    @Blrfl Python 2 has both != and <>, which behave identically. (Python 3 only has !=). Both 2 and 3 also have is not, which behaves differently. Commented Sep 15, 2017 at 15:47