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,997e6472f58cc955 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-03 10:31:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Case dependence and coding standards Date: 03 Jun 2003 13:31:55 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <035odv8mfiksmqo69q0250qp141oebtdro@4ax.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1054661515 2057 199.172.62.241 (3 Jun 2003 17:31:55 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 3 Jun 2003 17:31:55 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:38518 Date: 2003-06-03T13:31:55-04:00 List-Id: Fionn mac Cuimhaill writes: > With regards to the thread about case dependence - no, no, a thousand > times no! Keep Ada the way it is. I *would* like to see a fairly > simple way of getting the compiler to enforce coding standards. GNAT has a switch that requires a reference to a declaration to case-match the declaration. That seems like a good idea, and is much simpler than the "dictionary" idea you outlined. Furthermore, there is no advantage to having some folks use upper case for reserved words. The standard advises lower case, and if you do differently, you make the code harder to read for folks used to the standard convention. >...I > frequently annoy myself by writing something like Put_line when I > intended to to write Put_Line. GNAT would complain about this (under the switch). It would be nicer to have a compiler that simply corrected such errors in the source file, instead of complaining about them. The goal is to make consistent/readable code, not to punish programmers who are too lazy to hit the shift key. - Bob