Skip to main content
Tweeted twitter.com/StackSoftEng/status/911588720498921472
I clarified what I meant by the usage of each operator
Source Link
Liam
  • 189
  • 8

In manyThe are two operators '<>' and '!=' used in programming languages, with the two operatorssame general meaning.

'<>' can be used in PHP, SQL, and Pascal.

'!=' are interchangeableseems to be more commonly used.

What is the original reason for both of these operators to co-exist, when they seem to be so similar in purpose? What was the first language to support both?

In many programming languages, the two operators '<>' and '!=' are interchangeable.

What is the original reason for both of these operators to co-exist? What was the first language to support both?

The are two operators '<>' and '!=' used in programming languages with the same general meaning.

'<>' can be used in PHP, SQL, and Pascal.

'!=' seems to be more commonly used.

What is the original reason for both of these operators to co-exist, when they seem to be so similar in purpose? What was the first language to support both?

Source Link
Liam
  • 189
  • 8

Why is there both logical operators <> and !=?

In many programming languages, the two operators '<>' and '!=' are interchangeable.

What is the original reason for both of these operators to co-exist? What was the first language to support both?