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-02 19:46:20 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!wn14feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi.com!sccrnsc04.POSTED!not-for-mail From: "Steve" Newsgroups: comp.lang.ada References: Subject: Re: Case sensitivity (was Re: no title) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: NNTP-Posting-Host: 12.211.13.75 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc04 1054608249 12.211.13.75 (Tue, 03 Jun 2003 02:44:09 GMT) NNTP-Posting-Date: Tue, 03 Jun 2003 02:44:09 GMT Organization: AT&T Broadband Date: Tue, 03 Jun 2003 02:44:09 GMT Xref: archiver1.google.com comp.lang.ada:38422 Date: 2003-06-03T02:44:09+00:00 List-Id: "Sergey Koshcheyev" wrote in message news:bbf9kl$7kt$1@ns.felk.cvut.cz... > > "Preben Randhol" wrote in message > news:slrnbdm1i7.1k5.randhol+abuse@kiuk0152.chembio.ntnu.no... > > Case SenSitIvitY is a bAD ThiNg IMHO. It reduces readability as you need > > to be sure you spelt it correctly according to the definition. One could > > in fact have a GetString and getstring and Getstring and > > getString procedure. > > IMHO, case sensitivity would help ensure consistency of names, so you don't > have Text_IO, Text_Io, text_io and TEXT_IO in the same program, and would > also enable using common words like In, Out, For, At for identifiers. Things > like GetString vs. getstring and others are better handled by using some > coding standard and naming convention, in my opinion. Given that it's > standard in Ada to use Identifiers_Like_This, I think case sensitivity > wouldn't do any harm. IMHO, case sensitivity does not ensure consistency of names. It permits you to have Text_IO, Text_Io, text_io and TEXT_IO in the same program, that all do different things (Yuk!). Having seen this sort of thing in some C code, I think it's a very bad thing and does do harm. Now if you want to add a compiler switch that warns if the same identifier appears in different places with different casing... I think that is a good idea. Maybe a smart IDE could even pop-up a list of casings for the same identifier and let you choose the "right" one. Steve (The Duck)