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,ad988eb0a9545c86 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-20 12:48:06 PST Path: newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!iad-peer.news.verio.net!news.verio.net!sea-read.news.verio.net.POSTED!not-for-mail Newsgroups: comp.lang.ada From: Brian Rogoff Subject: Re: Problem trying to implement generics. In-Reply-To: <9bpacv$86n$2@a1-hrz.uni-duisburg.de> Message-ID: References: <9b6m27$68e$1@taliesin.netcom.net.uk> <0JBB6.10484$FD1.1197250@news6-win.server.ntlworld.com> <9b7tce$laf$2@taliesin.netcom.net.uk> <3ADC4320.7ACA3DEC@averstar.com> <9bhoup$h9k$1@taliesin.netcom.net.uk> <3ADC7A79.8E853905@mindspring.com> <9bi7vb$9j7$1@taliesin.netcom.net.uk> <9bpacv$86n$2@a1-hrz.uni-duisburg.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Date: Fri, 20 Apr 2001 19:48:05 GMT NNTP-Posting-Host: 206.184.139.136 X-Complaints-To: abuse@verio.net X-Trace: sea-read.news.verio.net 987796085 206.184.139.136 (Fri, 20 Apr 2001 19:48:05 GMT) NNTP-Posting-Date: Fri, 20 Apr 2001 19:48:05 GMT Organization: Verio Xref: newsfeed.google.com comp.lang.ada:6822 Date: 2001-04-20T19:48:05+00:00 List-Id: On Fri, 20 Apr 2001, Georg Bauhaus wrote: > Brian Rogoff (bpr@shell5.ba.best.com) wrote: > > : Suffice to say, I disagree. The following is fine > > : while (iter.hasMore()) { > : X := iter.getNext(); > : // do stuff with X > : } while; // optional :-) > > Yes, really fine. I've just run the equivalent of > > int c = 0; > while (c < 1000) { > c += 2; > } while (0); > > through C and Java compilers (HP/GNU/IBM). What fun! Interesting. > The code produced is the same irrespective of this nice > C "end while" construct :-) So the brackets vs. begin/end > discussion is OBE? Well, the whole thing is somewhat whimsical. I personally prefer this aspect of Ada syntax but it's very, very low on my list, so if I were voting on some new language design I'd probably vote to keep begin-end but if the rest of the world wants {} instead so be it. I'd really like to use the {} for something else, and there are only a few symmetric bracket pairs to choose from. -- Brian