Re: make == as = ?

From: Martin Marques <martin(at)bugs(dot)unl(dot)edu(dot)ar>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>, Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: make == as = ?
Date: 2004-04-07 20:29:42
Message-ID: 200404071729.42650.martin@bugs.unl.edu.ar
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

El Mié 07 Abr 2004 06:28, Fabien COELHO escribió:
> > > > =? as != is a synonum for <>, it would make sense.
> > >
> > > That was never such a terribly good idea, IMHO.
> >
> > Agreed. Compilers should give errors and not try to work around bad code.
>
> Is it bad code? Not for people who come from a C/C++/Java background.
> They are used to operators such as == != % && || !... Some of these
> are available from pg, some are not, so at the time it is incoherent.

I have such a background, and still don't use != to ask for inequality. The
correct thing to use is <>, because thats what the SQL standards say.

--
17:28:01 up 29 days, 21:55, 2 users, load average: 0.34, 0.31, 0.29
-----------------------------------------------------------------
Martín Marqués | select 'mmarques' || '@' || 'unl.edu.ar'
Centro de Telematica | DBA, Programador, Administrador
Universidad Nacional
del Litoral
-----------------------------------------------------------------

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dennis Bjorklund 2004-04-07 20:55:24 Re: locale
Previous Message Tom Lane 2004-04-07 20:03:03 Re: locale