comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Help: Binary operator "="
Date: 1997/06/07
Date: 1997-06-07T00:00:00+00:00	[thread overview]
Message-ID: <dewar.865691385@merv> (raw)
In-Reply-To: 33932325.6E38@lmtas.lmco.com


Ken says

<<Because infix operators don't read as nice when fully qualified, of
course...
 
  Some_Stack_Type.Push(Value => A_Thing.Object, Onto => A_Stack.Object);
-- nice
 
  if Some_Stack_Type.Is_Empty(A_Stack.Object) ... -- OK
 
  if Some_Stack_Type."="(A_Stack.Object, Another_Stack.Object) then ... 
    -- not nearly as nice as
  if A_Stack.Object = Another_Stack.Object then ...
 
Surely the increased readability is intuitively obvious! :)
>>

Oh most certainly it is to me, getting rid of the silly Some_Stack_Type
prefix on "=" and deciding that you can use other means to figure out
where "=" comes from makes excellent sense to me.

The only trouble is, I would apply the same reasoning to the annoying
Some_Stack_Type. prefix on the Is_Empty call. Indeed I don't see the
difference between the two cases. Either it is a problem to have to
find out where things are, necessitating the verbose prefixs, or it is
not, and the situation seems the same in both cases to me :-) :-)

(the smileys are because this is an old discussion, hardlly worth repeating
unless someone has something new to say :-)





  parent reply	other threads:[~1997-06-07  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-20  0:00 Help: Binary operator "=" Adrian B.Y. Hoe
1997-05-21  0:00 ` Jeff Carter
1997-05-21  0:00 ` Robert Dewar
     [not found]   ` <33932325.6E38@lmtas.lmco.com>
1997-06-07  0:00     ` Robert Dewar [this message]
1997-06-08  0:00       ` Ken Garlington
1997-06-10  0:00         ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox