From: dennison@telepath.com (Ted Dennison)
Subject: Re: Where did /= come from?
Date: 7 Nov 2002 06:58:04 -0800
Date: 2002-11-07T14:58:04+00:00 [thread overview]
Message-ID: <4519e058.0211070658.20c730a4@posting.google.com> (raw)
In-Reply-To: pan.2002.11.07.06.50.35.988084@greenroom.com.au
"Matthew Baulch" <matt@greenroom.com.au> wrote in message news:<pan.2002.11.07.06.50.35.988084@greenroom.com.au>...
> I'm not advocating C when I say this, but != makes far more sense than /=
> lexically speaking. In C, the Negative of a bool is retrieved with !foo.
In C, that's a very true statement, for both the reason you mention,
and because "/=" is actually a valid shortcut division operator, as I
recently discovered to my sorrow.
In Ada, it is *not* a true statement.
> In Ada, not foo. So I believe that K&R got it right using the != operator
> for 'not equal'. Ada on the other hand doesn't use the ! operator and "not
> equal" is too clumsy so it could be far worse than '/='.
K&R certianly got it right for C. However, that decision was based on
a rotten foundation of using unnessecarily terse notation for the
concept of "not", for allowing a shortcut "division back into"
operator, and for allowing assignments to be value returning
statements themselves.
As you point out, Ada's operator is just fine for Ada.
next prev parent reply other threads:[~2002-11-07 14:58 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-06 16:12 Where did /= come from? Programmer Dude
2002-11-06 16:50 ` Preben Randhol
2002-11-06 17:25 ` Programmer Dude
2002-11-07 9:31 ` Preben Randhol
2002-11-07 11:19 ` David C. Hoos, Sr.
2002-11-07 11:23 ` Preben Randhol
2002-11-07 22:56 ` Programmer Dude
2002-11-08 9:43 ` Preben Randhol
2002-11-08 9:53 ` Preben Randhol
2002-11-08 19:35 ` Programmer Dude
2002-11-06 17:33 ` Robert A Duff
2002-11-06 20:17 ` Programmer Dude
2002-11-07 6:50 ` Matthew Baulch
2002-11-07 9:21 ` Preben Randhol
2002-11-08 0:23 ` news.bctel.net
2002-11-08 9:45 ` Preben Randhol
2002-11-07 14:58 ` Ted Dennison [this message]
2002-11-07 15:29 ` Frank J. Lhota
2002-11-07 22:57 ` Programmer Dude
2002-11-08 17:06 ` Frank J. Lhota
2002-11-07 15:03 ` Robert A Duff
2002-11-07 18:02 ` Vinzent Hoefler
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox