Re: 1--1

From: Jerry Stuckle <jstucklex_at_attglobal.net>
Date: Thu, 22 Jan 2015 20:47:12 -0500
Message-ID: <m9s962$4ke$1_at_dont-email.me>


On 1/22/2015 7:56 PM, Kiuhnm Mnhuik wrote:
> On Thursday, January 22, 2015 at 4:50:23 AM UTC+1, Jerry Stuckle wrote:

>> On 1/21/2015 9:16 PM, Doug Miller wrote:
>>> tony_at_mountifield.org (Tony Mountifield) wrote in news:m9oph4$jdf$1_at_softins.softins.co.uk:
>>>
>>>>
>>>> The second query evaluates the expression 1--1 to the constant 2,
>>>
>>> It does *what*???
>>>
>> (1) - (-1) = 2
>>
>> The syntax he used confused me for a while, also, Doug.

>
> This is also valid:
> select 1-----------------------------1
> :)
>

Yes, but anyone who coded something like that on one of my projects would find himself on the street before the last semicolon.

Your first version would not be allowed as coded, either (although you wouldn't get fired for it). I require clarity above all else. And your "problem" is a perfect reason why.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex_at_attglobal.net
==================
Received on Fri Jan 23 2015 - 02:47:12 CET

Original text of this message