News for hackers. Stuff that matters.
Re:Oberon-2, a hi-performance alternative to C++ (1997) by augustk on Wednesday January 25, 2023 @10:29AM (#34519359)
It is also worth mentioning that Oberon-07 is a purely structured language in the sense that each sequence of statements is either fully executed or not executed; the only exception is ASSERT(FALSE) which halts the program.

So in Oberon:

  WHILE i < 100 DO
     ...
  END
  (*Is i >= 100 here? Yes of course, otherwise the loop guard would be lying.*)
In C:

  while (i < 100) {
     ...
     if (i >= 10) break;
     ...
  }
  /*Is i >= 100 here? No, not necessarily. Why is the loop guard lying then?*/

There are no comments on this comment yet.