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: 146b77,d275ffeffdf83655 X-Google-Attributes: gid146b77,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/16 Message-ID: <77q4gk$d88$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 433303600 References: <369C1F31.AE5AF7EF@concentric.net> <369CBD05.79D0@telusplanet.net> <369CBDA8.D3673C68@pwfl.com> <77np3q$e6h$1@nnrp1.dejanews.com> <36A045FF.EBA4370@easystreet.com> X-Http-Proxy: 1.0 x6.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: Sat Jan 16 13:34:12 1999 GMT Newsgroups: comp.lang.ada,comp.lang.c++,comp.vxworks,comp.lang.java X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-01-16T00:00:00+00:00 List-Id: In article <36A045FF.EBA4370@easystreet.com>, Al Christians wrote: > > > But by some surprising coincidence, a certain COBOL > compiler did go to some lengths, perhaps unintentionally, > to promote the coding style that Robert Dewar has > recently advocated in this thread. It would mis-compile > code if the IF-THEN-ELSE structures were nested too > deeply. That is not at ALL surprising. As anyone knows in the compiler field, compilers are very complex programs that typically have a lot of bugs initially. These bugs tend to get ironed out by experience with actual user programs. Since deeply nested if's are very seldom used in COBOL (this is not just a style that I advocate, it is pretty much universal practice to avoid deeply nested if's in COBOL), it is not at all surprising that there should be bugs there. Indeed unusual code, whether generated by students who do not know what they are doing, programs that generate code automatically, or incompetent programmers importing atypical coding styles, is most likely to break compilers, another reason for sticking to very standard style! Robert Dewar -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own