comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Vocabulary matter: Component vs Element vs Item
Date: Thu, 25 Jul 2013 18:38:47 +0200
Date: 2013-07-25T18:38:47+02:00	[thread overview]
Message-ID: <op.w0sduxdcule2fv@cardamome> (raw)

This is a vocabulary question, with consistency in mind when giving names  
to things.

All three words “component”, “element” and “item” could be seen as  
interchangeable in plain English (or am I wrong?).

In the Ada literature, seems “component” is most used in “record  
component” (sometime, less commonly “record element”), and far less for  
indexed or linked structures.

The words “element” and “item” are both used in the RM's standard  
containers. Unfortunately with no consistency, as it is often mixed. Ex.  
the indefinite holders says both “element” and “item”, at the same place.  
Ex. “Replace_Element” holds a “New_Item” argument of type “Element_Type”.

Outside of Ada, “item” is widely known in DOM, for elements lists. What it  
holds is often referred to as “element”, while the access to the n‑th  
element is provided by a function named “item”… mixed again. Or may be  
this suggest to say “item” for arguments and “element” for individual  
instances (and so may be for the type too)?

Which to use in which case? Or may be prior any attempt to answer this, is  
there at least any kind of consistency with the use of these words (except  
“component”, which is less common)?

Or a more easy one: how do you read these words?


-- 
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University

             reply	other threads:[~2013-07-25 16:38 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-25 16:38 Yannick Duchêne (Hibou57) [this message]
2013-07-25 19:01 ` Vocabulary matter: Component vs Element vs Item Simon Wright
2013-07-25 19:29   ` Jeffrey Carter
2013-07-25 20:12   ` Yannick Duchêne (Hibou57)
2013-07-26  7:59     ` Simon Wright
2013-07-26 18:42       ` Yannick Duchêne (Hibou57)
2013-07-26 18:53         ` Yannick Duchêne (Hibou57)
2013-07-26 19:29         ` Yannick Duchêne (Hibou57)
2013-07-27  3:42           ` Randy Brukardt
2013-07-27  8:18         ` Simon Wright
2013-07-27  3:35       ` Randy Brukardt
2013-07-27 15:57         ` Shark8
2013-07-26  9:56 ` Manuel Collado
2013-07-26 17:24 ` Charles H. Sampson
2013-07-26 18:29   ` Adam Beneschan
2013-07-26 19:12     ` Yannick Duchêne (Hibou57)
2013-07-26 19:56       ` Adam Beneschan
2013-07-29 20:25 ` Eryndlia Mavourneen
2013-07-29 22:30   ` Yannick Duchêne (Hibou57)
2013-07-30 13:46     ` Eryndlia Mavourneen
replies disabled

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