Re: Strange behavior of "=" as assignment operator

From: Moshe Jacobson <moshe(at)neadwerx(dot)com>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>, Stephen Dolan <stephen(at)neadwerx(dot)com>
Subject: Re: Strange behavior of "=" as assignment operator
Date: 2013-05-28 20:17:35
Message-ID: CAJ4CxL=431dnO70UBAkp58=ytOYmp10zP4vcMZR5eRoEFfW+Hg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, May 28, 2013 at 4:06 PM, Stephen Frost <sfrost(at)snowman(dot)net> wrote:

> Both are supported. It's not really documented as using '=' is
> considered 'legacy' but it's also extensively used and removing it would
> break quite a bit of code for people.
>

This is crazy! By leaving it in, they are allowing my obsolescent code to
compile and run without warning!
This means that one day down the road, *MY* code is going to break because
the developers assumed that this obsolescent behavior was OK to turn on by
default.
IMO they should have disabled the default acceptance of "=" and given us an
option to enable it if our code broke.
Not leaving it in by default.

Any PG committers who can change this in 9.3?

--
Moshe Jacobson
Nead Werx, Inc. | Manager of Systems Engineering
2323 Cumberland Parkway, Suite 201 | Atlanta, GA 30339
moshe(at)neadwerx(dot)com | www.neadwerx.com

"Quality is not an act, it is a habit." -- Aristotle

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephen Frost 2013-05-28 20:22:24 Re: Strange behavior of "=" as assignment operator
Previous Message Pavel Stehule 2013-05-28 20:11:11 Re: Strange behavior of "=" as assignment operator