Re: add operator ^= to mean not equal (like != and <>) - Mailing list pgsql-hackers

From Gavin Flower
Subject Re: add operator ^= to mean not equal (like != and <>)
Date
Msg-id e3d6cea5-4d18-4b0a-0f1c-e17843d6bf2c@archidevsys.co.nz
Whole thread Raw
In response to add operator ^= to mean not equal (like != and <>)  ("孙诗浩(思才)" <sunshihao.ssh@alibaba-inc.com>)
List pgsql-hackers
On 10/08/21 8:27 pm, 孙诗浩(思才) wrote:
> Hi everyone,
> I am doding some jobs in postgres. I want to add "^=" like "!=" and "<>".

One problem is that '^' & '^=' is already used as the exclusive OR 
operator in programming languages such as: C, Java, JavaScript, and 
Python.  See:

    https://www.tutorialspoint.com/java/java_basic_operators.htm

    https://www.tutorialspoint.com/cprogramming/c_operators.htm

    https://docs.python.org/3/library/operator.html

    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators

Please don't confuse people unnecessarily!


Cheers,
Gavin




pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: standby recovery fails (tablespace related) (tentative patch and discussion)
Next
From: Michael Banck
Date:
Subject: Re: add operator ^= to mean not equal (like != and <>)