[Oberon] Re (2): LONGINT, RETURN & etc.
Jörg
joerg.straube at iaeth.ch
Sat Jun 17 19:59:40 CEST 2017
You are right, LOOP would be a more generic way iso using REPEAT and/or WHILE.
But the program flow with a LOOP and (one or more) EXIT is not as easily understandable as a REPEAT or WHILE construct.
Jörg
> Am 17.06.2017 um 18:53 schrieb <peter at easthope.ca> <peter at easthope.ca>:
>
> From: Chris Burrows <chris at cfbsoftware.com
> Date: Sat, 17 Jun 2017 13:40:15 +0930
>> ... the Oberon 'LOOP' statement with multiple 'EXIT's was abolished
>> at the same time.
>
> An even simpler possibility is to eliminate FOR, REPEAT and WHILE
> and retain LOOP with the restriction of exactly one exit, at the
> beginning or at the end. Analogous to the RETURN revision.
>
> Some time in the last year or two (I can't find a citation at present)
> Joerg commented,
>> LOOP R.I.P.
>
> With this hypothetical revision, the cases of the content of the LOOP
> being executed zero times or once remain immediately clear.
> Dropping FOR, REPEAT and WHILE in favour of LOOP would impose
> more work to bring old sources to new syntax. If there is a stronger
> argument against it, I haven't caught it.
>
> LOOP or not, Oberon is a superb language.
>
> Regards, ... Lyall E.
>
> --
>
> 123456789 123456789 123456789 123456789 123456789 123456789 123456789
> Tel: +1 360 639 0202 Pender Is.: +1 250 629 3757
> http://easthope.ca/Peter.html Bcc: peter at easthope. ca
>
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon
More information about the Oberon
mailing list