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:34:37 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <1054822475.956756@master.nyc.kbcfp.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1054835450 21415 128.183.235.92 (5 Jun 2003 17:50:50 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 5 Jun 2003 17:50:50 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Xref: archiver1.google.com comp.lang.ada:38710 Date: 2003-06-05T17:50:50+00:00 List-Id: Hyman Rosen writes: > Lionel.DRAGHI@fr.thalesgroup.com wrote: > > Your code example is pretty, but using different names > > instead of different casing is as easy and less error prone. > > If that were the case, then overloading would not be legal. Too strongly worded. There are many enormous advantages to allowing overloading, and the Ada team judged that they outweighed the disadvantage of sometimes being confusing. I certainly have an informal coding standard that says "don't name a procedure 'Get' if it acts like 'Put'". But that doesn't mean I don't want overloading. For case sensitivity, there is a similar tradeoff; in this case, the Ada team decided not to have case sensitivity. In both cases, I agree with the choices, which is one of the reasons I like Ada. -- -- Stephe