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,79bbf7e359159d0d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-11 07:14:11 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!skynet.be!diablo.theplanet.net!diablo.netcom.net.uk!netcom.net.uk!not-for-mail From: "Ayende Rahien" Newsgroups: comp.lang.ada Subject: Re: newbie can't get exceptions to work! Date: Wed, 11 Apr 2001 17:09:44 +0200 Organization: (Posted via) GTS Netcom - Public USENET Service http://pubnews.netcom.net.uk Sender: ayende@softhome.net Message-ID: <9b1oqv$ikb$2@taliesin.netcom.net.uk> References: <25%y6.2364$jz.201607@www.newsranger.com> <3ACDB29E.45B91316@earthlink.net> <3AD2788C.7F2BAFA3@worldnet.att.net> NNTP-Posting-Host: diup-181-145.inter.net.il X-Trace: taliesin.netcom.net.uk 986998432 19083 213.8.181.145 (11 Apr 2001 14:13:52 GMT) X-Complaints-To: abuse@corp.netcom.net.uk NNTP-Posting-Date: Wed, 11 Apr 2001 14:13:52 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.60.2296.0000 X-MimeOLE: Produced By Microsoft MimeOLE V5.60.2296.0000 Xref: supernews.google.com comp.lang.ada:6760 Date: 2001-04-11T17:09:44+02:00 List-Id: "Ted Dennison" wrote in message news:pcLA6.2553$FY5.178009@www.newsranger.com... > In article , Brian > Rogoff says... > > > >On Tue, 10 Apr 2001, James Rogers wrote: > >> Robert A Duff wrote: > >> Even more interesting is the common practice among experienced C, > >> C++, and Java programmers to comment the closing "}" with an > >> indication of the block being closed: > >> > >> } // end if > >> > >> or > >> > >> } // end getCount() > > > >That's a very good point. I use that practice in all of my code where the > >length of a subprogram or conditional becomes a bit too long. I suppose, > >using the kind of argument used to justify some Ada restrictions, that > >someone could say that I should factor the code better. :-) > > I should point out that if your putatative language were to *require* those > endings somehow (eg: ditch the "// end" from the above constuctions), it would > annul most (if not all) of my complaints against using curly-braces. Brian Rogoff suggested this: procedure P(){ } P; if (condition) { } if; I think it has the best of both worlds.