comp.lang.ada
 help / color / mirror / Atom feed
* Re: Basic Properties of Lists ("foreward")
@ 2001-12-11 13:02 Mike Brenner
  2001-12-11 16:59 ` Darren New
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Brenner @ 2001-12-11 13:02 UTC (permalink / raw)
  To: comp.lang.ada

"Foreword" is a wonderful example of ambiguity in the English language. It seems to be saying "towards the fore or front", but it sometimes means "from the fore or front". 

It is similar to situations like "is a North wind coming from the North or going towards the North", and is an inflammable pyjama "un-flame-able or is it enflame-able"? 

There ought to be a word for this particular kind of ambiguity.


> Ted Dennison wrote:
> > 
> > How about we use "Head" and "Tail" for terminology? In the final analysis I
> > don't think they are any more biased than "Front" and "Back". Plus those terms
> > are traditionally associated with lists, so they might be more acceptable to
> > Jeff. As an added bonus, I don't think anyone is liable to complain that it
> > ought to be "Tailward" and "Headward" instead. :-)
> 
> Or CAR and CDR, with associated CARward and CDRward directions :)
> 
> Head and Tail are OK. I'm primarily interested in being able to say
> things like
> 
> the list is sorted in ascending order
> 
> without adding confusing terminology about the direction of traversal
> needed to observe this property; Head -> Tail is implied. Saying the
> list is sorted when traversed Forward or Frontward is unclear.
> 
> Similarly, I'd like to be able to say
> 
> the previous element from position P
> 
> without adding a direction; the previous element is closer to the Head.
> Is the Forward neighbor of P closer to the Head or the Tail?
> 
> Maybe I'm just dense, but I find such terminology confusing.
> 
> -- 
> Jeffrey Carter




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Basic Properties of Lists ("foreward")
  2001-12-11 13:02 Basic Properties of Lists ("foreward") Mike Brenner
@ 2001-12-11 16:59 ` Darren New
  2001-12-11 17:20   ` Ed Falis
  0 siblings, 1 reply; 3+ messages in thread
From: Darren New @ 2001-12-11 16:59 UTC (permalink / raw)


Mike Brenner wrote:
> "Foreword" is a wonderful example of ambiguity in the English language. It seems to be saying "towards the fore or front", but it sometimes means "from the fore or front".

Actually, I still recommend the terminology from the EiffelBase
(www.eiffel.com) libraries. "Forth" and "Back", as in back and forth,
are the directions for one-dimensional traversal. There's a ton of good
terminology there.
 
> It is similar to situations like "is a North wind coming from the North or going towards the North", and is an inflammable pyjama "un-flame-able or is it enflame-able"?

Worse. One means it will catch on fire, and the other means it will
explode. (Inflamable and imflamable, that is.)

-- 
Darren New 
San Diego, CA, USA (PST). Cryptokeys on demand.
   You will soon read a generic fortune cookie.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Basic Properties of Lists ("foreward")
  2001-12-11 16:59 ` Darren New
@ 2001-12-11 17:20   ` Ed Falis
  0 siblings, 0 replies; 3+ messages in thread
From: Ed Falis @ 2001-12-11 17:20 UTC (permalink / raw)


Darren New wrote:


> Actually, I still recommend the terminology from the EiffelBase
> (www.eiffel.com) libraries. "Forth" and "Back", as in back and forth,
> are the directions for one-dimensional traversal. There's a ton of good
> terminology there.

I second that one.  If you can find a copy of Meyer's "Reusable 
Software", it's well worth a read (the syntax of Eiffel is pretty close 
to Ada and should present no particular problems).  The reason the book 
and the EiffelBase components are good is that they take a systematic 
approach to naming and organization of all the components in the 
library.  Since it uses multiple inheritance extensively (as is the 
Eiffel style), there are concepts that won't be directly applicable to 
an Ada style component library.  But there're still an awful lot of 
overlapping concepts there.  The whole library is very well thought out.

- Ed




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-12-11 17:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-11 13:02 Basic Properties of Lists ("foreward") Mike Brenner
2001-12-11 16:59 ` Darren New
2001-12-11 17:20   ` Ed Falis

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