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 12:04:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!tethys.csu.net!news-hog.berkeley.edu!ucberkeley!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 15:04:05 -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 1054667046 29479 199.172.62.241 (3 Jun 2003 19:04:06 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 3 Jun 2003 19:04:06 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:38542 Date: 2003-06-03T15:04:05-04:00 List-Id: Vinzent Hoefler writes: > Robert A Duff wrote: > > >It would be nicer to have a compiler that simply corrected such errors > >in the source file, instead of complaining about them. > > Well, I expect a compiler to *read* the source, not actually *write* > it. Sure, that's what we're all used to. But we expect our editors and pretty-printers and CM systems and so forth to modify our source code. Why do we trust some programs over others to modify our code? I like to turn on the GNAT switch that complains when I say "Text_io" instead of "Text_IO". The latter is more readable, because that's how the package was declared. But I would like even better for it to fix it, rather than complain about it. Of course, Emacs does almost all of that for me, as I type it in, but in a few cases it requires extra work -- Emacs doesn't know Ada visibility and overloading rules. > >The goal is to make consistent/readable code, > > Strong ACK. :-) > >not to punish programmers who are too > >lazy to hit the shift key. > > NAK. Lazyness has to be punished. Hard. ;-> On the contrary. Laziness should be encouraged, in the sense of programmers avoiding useless work. The only kind of laziness I want to inhibit is the kind that causes extra work in the long run (e.g. unreadable code). - Bob