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 05:55:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.teledanmark.no!news.equant.no!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Case sensitivity (was Re: no title) Date: Mon, 2 Jun 2003 12:55:36 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: NNTP-Posting-Host: kiuk0152.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1054558536 20633 129.241.83.78 (2 Jun 2003 12:55:36 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Mon, 2 Jun 2003 12:55:36 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:38337 Date: 2003-06-02T12:55:36+00:00 List-Id: Sergey Koshcheyev wrote: > "Preben Randhol" wrote in message > news:slrnbdmc9d.46d.randhol+abuse@kiuk0152.chembio.ntnu.no... >> Why should the language care how you type it? > > For consistency. But it *is* consistent in that capitalisation is not a factor. > Yes, the switch is fine, but it still doesn't let me name a function > parameter "At", for example. Why shouldn't you? > How can I introduce an error due to wrong case, having strong type checking > and all the other safeguards? Because if you with and use package A and B and they both have a getstring procedure which does differnt things. GetString (Input : String) in package A and getstring (input : string) in package B Now if you say: GetString (Some_Input), but you really meant getstring (input : string) as you want to use the function in B your complier won't complain because GetString /= getstring. However if it is case insensitive (as it is now) the compiler will ask you to spesify which function you want because it cannot tell as getstring = GetString > Besides, do you really use all the freedom that case insensitivity gives > you? Do you type Text_IO differently every time you need to name it? I > myself much prefer consistent naming. The compiler could also warn me about > names not following conventions, but still let me use reserved words as > identifiers (and Ada currently prohibits using many common English words). Such as? > By the way, I know about Java and Hashtable vs HashMap, but in Ada it could > be just the same, with Hashtable and Hash_Map. I don't view it as an > argument against case sensitivity. Huh? -- Preben Randhol http://www.pvv.org/~randhol/