Re: add operator ^= to mean not equal (like != and <>)

From: Gavin Flower <GavinFlower(at)archidevsys(dot)co(dot)nz>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: add operator ^= to mean not equal (like != and <>)
Date: 2021-08-10 20:57:33
Message-ID: e3d6cea5-4d18-4b0a-0f1c-e17843d6bf2c@archidevsys.co.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Banck 2021-08-10 21:14:13 Re: add operator ^= to mean not equal (like != and <>)
Previous Message Robert Haas 2021-08-10 20:56:37 Re: standby recovery fails (tablespace related) (tentative patch and discussion)