From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: Manuel Collado Newsgroups: comp.lang.ada Subject: Re: Vocabulary matter: Component vs Element vs Item Date: Fri, 26 Jul 2013 11:56:10 +0200 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: zZrAef24NsSfuR/h3AUDTg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:16521 Date: 2013-07-26T11:56:10+02:00 List-Id: El 25/07/2013 18:38, Yannick Duchêne (Hibou57) escribió: > 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? My personal opinion is: - "Element" is a general term. More or less a synonym for "thing". - "Component" is a member of a collection. Specially of a collection of heterogeneous elements (records). - "Item" is also a member of a collection. Specially of a collection of similar elements (lists). -- Manuel Collado - http://lml.ls.fi.upm.es/~mcollado