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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5d71,d275ffeffdf83655 X-Google-Attributes: gidf5d71,public X-Google-Thread: 103376,d275ffeffdf83655 X-Google-Attributes: gid103376,public X-Google-Thread: 146b77,d275ffeffdf83655 X-Google-Attributes: gid146b77,public X-Google-Thread: 109fba,d275ffeffdf83655 X-Google-Attributes: gid109fba,public From: robert_dewar@my-dejanews.com Subject: Re: Ada vs C++ vs Java Date: 1999/01/20 Message-ID: <78549k$iqv$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 434851574 References: <369C1F31.AE5AF7EF@concentric.net> <369DDDC3.FDE09999@sea.ericsson.se> <369e309a.32671759@news.demon.co.uk> <369F1D39.64A65BC1@sea.ericsson.se> <369f81a9.31040093@news.demon.co.uk> <77ommt$9bo$1@nnrp1.dejanews.com> <77vhjf$nn9$1@nnrp1.dejanews.com> <77vld9$qvg$1@nnrp1.dejanews.com> <782rp0$kn6$1@nnrp1.dejanews.com> <6Oap2.16170$MW1.4028@news2.giganews.com> <783nnb$s9c@drn.newsguy.com> <784qvi$a0a$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x4.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Wed Jan 20 17:37:57 1999 GMT Newsgroups: comp.lang.c++,comp.vxworks,comp.lang.java,comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-01-20T00:00:00+00:00 List-Id: In article <784qvi$a0a$1@nnrp1.dejanews.com>, dennison@telepath.com wrote: > A good example of an Ada syntax spat is listing procedure > parameters in function bodies. The GNAT style rules are as follows, and yes everyone at ACT follows them: function x (y : integer) return Boolean is ... declarations begin ... statements end x; Above is used if it fits on one line function x (Hello : Integer; Goodbye : Integer) return Integer is ... declarations begin ... statements end x; if the prototopye takes more than one line. > And of course Ada "style guides" will typically require > one and only one of these formats to be used. An old debater's trick, set up a silly strawman, and knock it down. I never saw a set of guidelines that was obviously wrong in this respect. Remember (a) no one is arguing in favor of demonstrably silly style guidelines. (b) no one will accept that absurd notion that all style guidelines are bound to be demonstrably silly. So please don't produce examples of idiotic rules as a reason to have no rules!!!!!! > More typically the style guide gets ignored because > following it would be counter-productive. But that's an > awfully slippery slope... Indeed, which is why I think failure to follow style guide lines should not for a moment be tolerated. If the problem is that there is something wrong with the guidelines, fix them, don't ignore them! -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own