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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable 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-11 03:47:18 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-pas-nf2!newsfeed.earthlink.net!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!usenet-fr.net!enst.fr!not-for-mail From: Lionel.DRAGHI@fr.thalesgroup.com Newsgroups: comp.lang.ada Subject: RE: Case sensitivity (was Re: no title) Date: Wed, 11 Jun 2003 12:48:14 +0200 Organization: ENST, France Message-ID: NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: avanie.enst.fr 1055328347 6609 137.194.161.2 (11 Jun 2003 10:45:47 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 11 Jun 2003 10:45:47 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: X-Mailer: Internet Mail Service (5.5.2653.19) X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:38969 Date: 2003-06-11T12:48:14+02:00 | -----Message d'origine----- | De: Hyman Rosen [mailto:hyrosen@mail.com] .. | Underline all you want. Of course this is just a style | issue! If Ada had decided to forbid the letter 'e' in | identifiers, it would still be a perfectly good language, | but it would annoy people who want to use that letter and | can't. So not so perfect. | Instead, we have a language which considers | Get_String and get_string but not GetString to be identical, | and distinguishes between F00L and FOOL. I consider that | perfectly arbitrary. If you insist upon insensitivity, I | would ban digits from identifiers, and allow '_' as a | non-semantic separator between letters just like it is used | in Ada numbers. Considering programming as a human activity is why Ada is a better langage. - A normal human is used to read "get string", not "getstring". Identifer with space is practically not possible, so the underscore do the job. Get_String is still far easier to read than GetString. - A normal human will easily miss the "List" vs "list" difference, but he won't confuse "List" and "The_List". - A normal human prefer to read a phone number formatted 098 983 423 instead of 098983423. - A normal human understand "get string" exactly the same way than "Get String". Allowing them to have different meaning is just setting traps. Ada avoid traps as much as possible, increase readability as much as possible, and without drawbacks. -- Lionel Draghi.