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,57547e48b4c4d9b8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-16 13:39:52 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: aunit? Date: Wed, 16 Apr 2003 20:39:52 +0000 (UTC) Organization: GMUGHDU Message-ID: References: NNTP-Posting-Host: d2-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1050525592 20184 134.91.1.15 (16 Apr 2003 20:39:52 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Wed, 16 Apr 2003 20:39:52 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/831)) Xref: archiver1.google.com comp.lang.ada:36209 Date: 2003-04-16T20:39:52+00:00 List-Id: Stephen Leake wrote: : : If code is not "properly formatted", I sometimes : spend enough time being bothered by it that it's worth fixing. In my view "worth fixing" needs careful consideration. The bulk of -gnaty warnings is about issues which can or cannot be an improvement, depending on settings entirely outside the control of GNAT. Whether or not a space before a paren is a good thing depends, among other things, on the fonts used, and on the medium used to display the Ada source code. (consider f (x) in most various circumstances.) Seen this way one might argue that -gnaty is completely unaware of any typographical tradition in mathematical typesetting. It seems to be aware of typical font appearance in typical plain text editors, on typical low res displays, as preset. That is, fixed width Courier, typically _not_ by IBM, but by Monotype or Adobe. Or, on character terminals, aware of the screen font that comes with your VGA, for example. Consistent indentation is a different, unrelated matter. I wish one could ask -gnatyX to concentrate on those aspects of source code which render Ada text ambigous to the human eye, like using l near 1 (or using l at all. Isn't there a "k instead of i in GNAT" policy?). Source code might look familiar because of the same spacing applied between tokens. But does this make you familiar with the source code? To each his own, yes. Ophelia doesn't sound like Hamlet, and that play will change a bit if you make them sound alike. I don't see the same danger for Ada source code, but I do see the time spent. My preference is (mostly) to learn how to read code that I haven't written, and only suggest -gnaty like improvements in case of a deeply nested mess. -- Georg