Re: Boolean operators without commutators vs. ALL/ANY
Florian G. Pflug <fgp@phlo.org>
From: Florian Pflug <fgp@phlo.org>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Robert Haas <robertmhaas@gmail.com>, PG Hackers <pgsql-hackers@postgresql.org>
Date: 2011-06-14T10:05:45Z
Lists: pgsql-hackers
On Jun13, 2011, at 16:19 , Andrew Dunstan wrote: > On 06/13/2011 10:07 AM, Robert Haas wrote: >> Some languages use =~ and some use just ~... I was just >> wondering if anyone thought the commutator of =~ was ~=... > > My feeling is it's a bit dangerous. It's too easy to fat-finger the reverse op, and get something quite unintended. Well, but with "~" you need to *remember* that the regexp goes on the right side and the text on the left. That seems worse than the risk of fat-fingering "=~" and getting "~=". At, at least, have looked up the argument order of "~" countless in the past... best regards, Florian Pflug