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-Thread: 103376,8b756d9a0afb052a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!multikabel.net!feed20.multikabel.net!gatel-ffm!gatel-ffm!proxad.net!cleanfeed2-a.proxad.net!nnrp12-2.free.fr!not-for-mail Date: Mon, 20 Feb 2006 09:17:03 +0100 From: Lionel Draghi User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.7.12) Gecko/20051007 Debian/1.7.12-1 X-Accept-Language: fr-fr, en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Quick question about Ada code formatting. References: <43F7915B.3090000@obry.net> <43F83D46.2090200@obry.net> <43F84890.7010900@obry.net> <43f871d8$0$491$9b4e6d93@newsread4.arcor-online.net> <43F872C4.50505@obry.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <43f97b00$0$4386$626a54ce@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 20 Feb 2006 09:17:04 MET NNTP-Posting-Host: 82.236.216.140 X-Trace: 1140423424 nnrp12-2.free.fr 4386 82.236.216.140:40539 X-Complaints-To: abuse@proxad.net Xref: g2news1.google.com comp.lang.ada:3010 Date: 2006-02-20T09:17:04+01:00 List-Id: Stephen Leake a �crit : > Pascal Obry writes: >>Between subprograms I prefer the "GNAT style" header box: >> >> ---------------------- >> -- Process_Whatever -- >> ---------------------- >> >> procedure Process_Whatever is >> ... >> >>Far clearer than 2 blank lines IMHO. > > > Yuck - a waste of valuable screen space. That's what syntax > colorization is for, along with navigation keys (page forward goes to > next subprogram). I agree. Sam's point about this style (some weeks ago in cla) was to put an emphasis on procedure start to ease reading the code in simple text editor. I don't think that vi or such are still used enough to justify such a "waste of valuable screen space". I think most people are using emacs/gps/etc., have no problem in code navigation. Anyway, there are several way to put emphasis on operations without wasting screen space, and without duplicating the procedure name in the comment, for example: procedure Process_Whatever is -- ---------------------------------------------------------- or -- ---------------------------------------------------------- procedure Process_Whatever is etc. And no, this is not "my taste", but an arguable scientific point :-) -- Lionel Draghi