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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8d472879e3f609e0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-05 10:34:50 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Case sensitivity (was Re: no title) Date: 05 Jun 2003 13:31:58 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1054835291 21415 128.183.235.92 (5 Jun 2003 17:48:11 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 5 Jun 2003 17:48:11 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Xref: archiver1.google.com comp.lang.ada:38709 Date: 2003-06-05T17:48:11+00:00 List-Id: Lionel.DRAGHI@fr.thalesgroup.com writes: > Your code example is pretty, but using different names instead of different > casing is as easy and less error prone. Actually, making up good names for types and objects is a problem in Ada. Some of us solve it by always appending _Type to type names: type List_Type is ... procedure Foo (List : in List_Type); Some people don't like the _Type, and do something else: type Lists is ... procedure Foo (List : in Lists); In a case sensitive language, this could be: type List is ... procedure Foo (list : in List); I think that's a legitimate argument for case sensitivity. However, I don't think it has as much weight as all the arguments on the other side. I also think using Lists and List is just as bad! > So, Ada has prevented an always bad choice. I think that's too strongly worded. The issue is not black and white, but shades of grey. -- -- Stephe