3 ms·
You don't jump through different hoops in most languages [1]. In Oberons you jump through the hoops because only `loop` is allowed to have `exit`, for example.
by illiarian 4y ago
You don't jump through different hoops in most languages [1].
In Oberons you jump through the hoops because only `loop` is allowed to have `exit`, for example. Which is a constraint for the sake of constraints. Repeat is a do/while, but it doesn't have while's elseif statement. Again, because reasons. And so on.
Oberon is nothing but hoops instead of loops.
[1] Go's decision to not include do/while is on par with Oberon's decisions for loops: stupid and unreasaonable.
- sedatk 4y agoI wasn't trying to defend Oberon per se but separate goal-specific loop constructs. Yes, not having `exit` in other loop types sounds problematic.