Dear All, While I read Oberon compiler code, it feels so good to see repeat-until constructs. Its semantics matches to intuition; "do something till this happens". Where as do-while construct of C feels so odd now! With thanks and best regards, Yours sincerely, Srinivas Nayak Home: http://www.mathmeth.com/sn/ Blog: http://srinivas-nayak.blogspot.in/
Its semantics matches to intuition; "do something till this happens". Where as do-while construct of C feels so odd now!
Intuition and feeling don't over-rule rational argument. RepeatUntil does not allow the <zero loop> case. So DoWhile is more universal. OTOH the most universal is GoTo; which we don't want. == Chris Glur.
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of eas lab Sent: Saturday, 25 June 2016 6:23 PM To: ETH Oberon and related systems Subject: Re: [Oberon] On praise of repeat-until construct
RepeatUntil does not allow the <zero loop> case.
So DoWhile is more universal.
Do-while in C also does not allow the <zero loop> case. You might be thinking of the C / Oberon 'while' loops, both of which allow the <zero loop> case.
participants (3)
-
Chris Burrows -
eas lab -
Srinivas Nayak