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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,14f7200925acb579 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: No Go To's Forever! Date: 2000/03/23 Message-ID: <8bdnt0$b8u$1@nnrp1.deja.com>#1/1 X-Deja-AN: 601386153 References: <38D7B41D.B3494C6A@lmco.com> <8b8m2e$8201@news.cis.okstate.edu> <8b9fk3$l18$1@nnrp1.deja.com> <38D8DFC2.778826FB@cadence.com> <8barci$4ks$1@nnrp1.deja.com> <38D9233B.D51B16A3@cadence.com> <8bbsl4$ani$1@nnrp1.deja.com> <8bd9ve$r1c$1@nnrp1.deja.com> <38DA2F9C.BAFF8C60@cadence.com> X-Http-Proxy: 1.0 x22.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Mar 23 18:30:56 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-03-23T00:00:00+00:00 List-Id: In article <38DA2F9C.BAFF8C60@cadence.com>, Paul Graham wrote: > For instance, the problem of maintaining an if statement in C > if there is no brace: > > if (condition) > stmt1; > stmt2; > > Here the maintainer thinks he's adding stmt2 to the then-clause of the > if statement. The Ada if syntax prevents this from happening. Sure, but in a C environment the above code should be ruled out by the coding rules for indentation, which should most certainly be checked by a tool (note that EMACS will do this checking by automatically identing the above code as > if (condition) > stmt1; > stmt2; which will help avoid this. I consider careful choice and enforcement of stylistic coding rules to be an essential element in high quality software engineering. Sent via Deja.com http://www.deja.com/ Before you buy.