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 16:36:54 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!sn-xit-03!sn-xit-04!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Case dependence and coding standards Date: Tue, 3 Jun 2003 18:37:58 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <035odv8mfiksmqo69q0250qp141oebtdro@4ax.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MIMEOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:38561 Date: 2003-06-03T18:37:58-05:00 List-Id: Robert A Duff wrote in message ... >Vinzent Hoefler writes: >> 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? Immediate feedback in an IDE, as opposed to some batch process where the changes (for good or evil) are hidden away. I *don't* allow pretty-printers and CM systems to modify my code; my experience is that they make it worse as often as they make it better. (The inability to turn off Rational's pretty printer in their editor is a great frustration to me.) I don't even think it is possible to write a pretty printer that will do a good job in general; such programs can't know when to line up declarations and when not to; when to leave comments alone and when to reformat them; and so on. (And I've tried to write one; you'll find it in Janus/Ada.) So I certainly would not want or allow a compiler to modify my code. The IDE can do such things (but it needs to be configurable in many ways, and it has to allow writing whatever makes sense, even if it violates some rule in the IDE's formatter). Randy.