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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,92c39a3be0a7f17d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-05 09:06:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!tor-nx1.netcom.ca!news1.tor.metronet.ca!nnrp1.tor.metronet.ca!not-for-mail Message-ID: <3C84FA77.8070202@home.com> From: "Warren W. Gay VE3WWG" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Future with Ada References: <3wdH7.20135$xS6.32614@www.newsranger.com> <9tqete0gqc@drn.newsguy.com> <3C0924D6.2B5A3087@adaworks.com> <250220022121494455%thehouseofcards@remove.this.part.mac.com> <3C7B0B13.3080003@worldnet.att.net> <3C7D1C89.2000803@home.com> <3C7E7CAD.7070504@mail.com> <3C7FB9D2.D9C6E055@boeing.com> <3C81DF1F.9000503@mail.com> <3C83A112.6080302@mail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 05 Mar 2002 17:03:56 GMT NNTP-Posting-Host: 198.96.47.195 NNTP-Posting-Date: Tue, 05 Mar 2002 10:03:56 MDT Organization: MetroNet Communications Group Inc. Xref: archiver1.google.com comp.lang.ada:20810 Date: 2002-03-05T17:03:56+00:00 List-Id: Chad R. Meiners wrote: > The problem is you are addressing each symbol independently from the > language as a whole. For example, which of the following looks more > incorrect (barring some syntax adjustments). > > if (x == y) { > cout << "We can use either."; > z = 2 * x; } > > -or- > > if (x ==y ) begin > cout << "We can use either."; > z = 2 * x; end But if you clean up the if statement, and the formatting, it becomes much cleaner as : if x = y then whatever...; else stmt...; end; And, when you have very loooong blocks, labelling them helps : Big_Outer_Loop : while ... loop ... Some_Inner_Loop : while .... loop ... end Some_Inner_Loop; ... end Big_Outer_Loop; With braces, you cannot label the blocks in any way. Hence people resort to such contrivances as : if ( x == y ) { ...; } /* if ( x == y ) */ The problem with this, is the compiler cannot read your comment and tell if the "}" matches up correctly. And if you excuse me for saying so, but this also looks UGLY. -- Warren W. Gay VE3WWG http://home.cogeco.ca/~ve3wwg