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,a50a3c40267219cc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-15 10:38:58 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: The caselessness is one of the things I like best! Date: 15 Oct 2001 12:38:55 -0500 Organization: LJK Software Message-ID: References: NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1003167537 27942 192.135.80.34 (15 Oct 2001 17:38:57 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Mon, 15 Oct 2001 17:38:57 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:14553 Date: 2001-10-15T12:38:55-05:00 List-Id: In article , gerhard.nospam@bigfoot.de (Gerhard =?iso-8859-1?Q?H=E4ring?=) writes: > On Mon, 15 Oct 2001 17:00:03 GMT, tmoran@acm.org wrote: >>> > If the only difference between two entities is the case, I think the >>> > program will be very hard to maintain. >>> >>> True. The compiler probably should show a warning in this case. >> In fact you can write a case sensitive Ada program, and the compiler >>will in fact complain if you try to declare two entities where the only >>difference is case. The only difference with C is that the compiler >>doesn't warn you, but silently creates two separate entities. :) > > It's probably best described by an example what I mean with inconsistent > casing. > > VAR n: Integer; > BEGIN > N := 5; > > I'd want to get a syntax error here. IIRC I can get GNAT to warn me > about this and you will perhaps think that this is only a matter of > style and best handled by tools apart from the compiler. > > Perhaps I'm irrational but Ada's behaviour here reminds me too much of > BASIC. > > This is one of the rare points where Ada allows the programmer to do > something stupid. Aside from someone brought up on C, how would it seem "stupid" ? if i should choose to Capitalize thINGs Irregularly, it may seem STrange to your eyes, but you do understand what i am saying. Many people feel a given program should use consistent casing, but that is just for the humans, not for the compiler. It is similar to the presence of comments in the source.