comp.lang.ada
 help / color / mirror / Atom feed
From: mfb@mbunix.mitre.org (Michael F Brenner)
Subject: Re: Two simple language questions (plural types)
Date: 1998/01/10
Date: 1998-01-10T00:00:00+00:00	[thread overview]
Message-ID: <697p89$b5j@top.mitre.org> (raw)
In-Reply-To: mheaney-ya023680000701980209270001@news.ni.net


This thread contains a recommendation that I disagree with. It said to
NOT name scalar types plurals. The reason given was so that it would
read better when you create an array. The example given was 
    type color_array is array (positive range <>) of color;

While there can be different opinions as to how to name the array, 
the array type, the range type, and the element type, there can be
not doubt that, in English, this is an array of COLORS (plural). 

Almost every type reads better when declared to be plural. Those things
that are singletons are declared in a manner where the OBJECT is SINGULAR,
and the TYPE is PLURAL, such as:
     color: colors; -- to be read as: color is of type colors

This is particularly critical for the array index range type, since
none of the array sentences will read as in English if those types
are singular (as in POSITIVE above). 

My recommendation, in order for all Ada declarative and imperative
sentences to read as in English (or any other Indo-European 
language, French, German, Dutch, Italian, Greek, Russian, etc.),
is that almost all objects be singular, all array objects be singular,
and all types be plural. This recommendation obviously does not 
apply to Semitic, Hamitic, Japanese, or Chinese languages, where
the concept of plurals is not like the concept in Indo-European 
languages; in those languages plurals are often not even expressed.

Mike Brenner


is to 




  reply	other threads:[~1998-01-10  0:00 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-07  0:00 Two simple language questions Chip Richards
1998-01-07  0:00 ` Dale Stanbrough
1998-01-07  0:00 ` Tucker Taft
1998-01-07  0:00 ` Matthew Heaney
1998-01-10  0:00   ` Michael F Brenner [this message]
1998-01-10  0:00     ` Two simple language questions (plural types) Robert Dewar
1998-01-10  0:00       ` Matthew Heaney
1998-01-10  0:00         ` Robert Dewar
1998-01-12  0:00         ` Anonymous
1998-01-12  0:00           ` Brian Rogoff
1998-01-12  0:00           ` Matthew Heaney
1998-01-12  0:00             ` Brian Rogoff
1998-01-13  0:00               ` Robert Dewar
1998-01-13  0:00                 ` Distinguishing type names from other identifiers Nick Roberts
1998-01-13  0:00                   ` Matthew Heaney
1998-01-14  0:00                     ` Stephen Leake
1998-01-24  0:00                       ` Matthew Heaney
1998-01-15  0:00                     ` Anonymous
1998-01-24  0:00                       ` Matthew Heaney
1998-01-24  0:00                         ` Martin M Dowie
1998-01-24  0:00                           ` Pred Nick Roberts
1998-01-25  0:00                           ` Distinguishing type names from other identifiers Matthew Heaney
1998-01-24  0:00                         ` Martin M Dowie
1998-01-15  0:00                   ` Aaro Koskinen
1998-01-17  0:00                     ` Martin M Dowie
1998-01-17  0:00                       ` Martin M Dowie
1998-01-25  0:00                       ` Matthew Heaney
1998-01-25  0:00                         ` Brian Rogoff
     [not found]                         ` <n5rs5FAStOz0Ew2+@dowie-cs.demon.co.uk>
1998-01-26  0:00                           ` Brian Rogoff
1998-01-27  0:00                             ` Martin M Dowie
1998-01-27  0:00                               ` Brian Rogoff
1998-01-27  0:00                                 ` Matthew Heaney
1998-01-28  0:00                                   ` Brian Rogoff
1998-01-28  0:00                                     ` Matthew Heaney
1998-01-29  0:00                                       ` Brian Rogoff
1998-01-30  0:00                                     ` Mats Weber
1998-01-28  0:00                                 ` Martin M Dowie
1998-01-11  0:00     ` Two simple language questions (plural types) Brian Rogoff
1998-01-07  0:00 ` Two simple language questions 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