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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cd45439466e86f24 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news.cs.univ-paris8.fr!informatik.uni-bremen.de!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: enumeration type Date: Mon, 27 Sep 2004 17:18:40 +0000 (UTC) Organization: GMUGHDU Message-ID: References: NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1096305520 9434 134.91.1.34 (27 Sep 2004 17:18:40 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Mon, 27 Sep 2004 17:18:40 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: g2news1.google.com comp.lang.ada:4280 Date: 2004-09-27T17:18:40+00:00 List-Id: Dmitry A. Kazakov wrote: [qualification] : It is a valid point, but is not applicable for non-composite types. >From a technical point of view, yes, you needn't always qualify literals, sure. From a stylistic point of view, a redundant qualification might turn out to be a useful reminder, at least when the near context isn't providing enough information. Similarly, named parameters can be very helpful. Not only to provide more information about the desired associations to the compiler, but also to remind the reader which Insert parameter is the key, and which is the value in an Integer -> Integer mapping. Notice how the context for understanding the parameter associations n this case is far away in the declaration of the library procedure Insert. Where is the threshold for "not enough context nearby"? The psychologists seem to say that between 3 and 7 items can be stacked by an average person. Would this be guidance in determining when there are so many "programming constructs" between two pieces of program text to that the second piece should be qualified? -- Georg