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, LOTS_OF_MONEY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 146b77,d275ffeffdf83655 X-Google-Attributes: gid146b77,public X-Google-Thread: f5d71,d275ffeffdf83655 X-Google-Attributes: gidf5d71,public X-Google-Thread: 103376,d275ffeffdf83655 X-Google-Attributes: gid103376,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: <784m10$5l2$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 434783083 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> X-Http-Proxy: 1.0 x14.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 13:34:24 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 <783nnb$s9c@drn.newsguy.com>, bill@nospam.com wrote: > In article <6Oap2.16170$MW1.4028@news2.giganews.com>, cbbrowne@news.hex.net > says... > > > > > > btw, since Ada has no braces, what is the problem? this > only seems to be C/C++/Java thing, since those uses > braces. Brace placement was just an example. I chose it because the fights that go on over this trivial issue are well known, notorious in fact you could say! In Ada, basic layout is dictated by the RM, and most people follow the RM more or less, less than more in some cases where it is not quite detailed enough, for example, all Ada programmers would follow the RM in lining up the ELSE under the IF. This is not required by the RM, but suggested by both its syntax rules, which include layout suggestions, and its examples. But there are other matters. For a detailed list, see the unit style.adb in the GNAT sources. For example, some people write: a:=b( j ); where others (including GNAT) would write a := b (j); Arguments about which of the above are preferable are in my opinion rather dubious, but I see no reason to let people be sloppy and inconsistent about such minor issues. Let's all drive on the same side of the road, OK? -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own