comp.lang.ada
 help / color / mirror / Atom feed
From: "Matthew Baulch" <matt@greenroom.com.au>
Subject: Re: Where did /= come from?
Date: Thu, 07 Nov 2002 17:50:37 +1100
Date: 2002-11-07T06:51:01+00:00	[thread overview]
Message-ID: <pan.2002.11.07.06.50.35.988084@greenroom.com.au> (raw)
In-Reply-To: 3DC93F8B.9E28FD15@mmm.com

On Wed, 06 Nov 2002 10:12:59 +0000, Programmer Dude wrote:

> I'm learning Ada (installed GNAT and AdaGIDE last week, wrote Hello, World).
> 
> I was somewhat bemused to stumble on Ada's version of "not equals": /=
> 
> I'm curious about its derivation or the reason behind the lexography.
> (Perhaps a desire to use common keyboard characters?)

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 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 '/='.




  parent reply	other threads:[~2002-11-07  6:50 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 [this message]
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
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