Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!asuvax!noao!amethyst!raw From: raw@math.arizona.edu (Rich Walters) Newsgroups: comp.lang.c Subject: Re: do...while vs. repeat...until (was: Errors aren't that simple) Summary: both suck Keywords: loops,while,repeat Message-ID: <1539@amethyst.math.arizona.edu> Date: 26 Mar 90 06:16:35 GMT References: <16188@haddock.ima.isc.com> <9130009@hpavla.AVO.HP.COM> Sender: news@amethyst.math.arizona.edu Organization: Dept. of Math., Univ. of Arizona, Tucson AZ 85721 Lines: 28 I think that _BOTH_ while and do ... while loops suck. I worked for the Arizona State Musuem here on campus. They have a Prime and use INFORMATION, a big league data base system. It includes a dialect of BASIC called INFO-BASIC. The syntax of the loop structure there is: loop { statement } {while (expr) | until (expr)} { statement } repeat This allows _complete_ freedom in where you check for loop termination. You can check at the beginnig the end or _anywhere_ in between!!! I think this is the bestest ever!!!!!! Richard Walter ------------------------------------------------------------------------------- Keep on crunching those numbers -------------------------------------------------------------------------------