News for hackers. Stuff that matters.
Re:Including “And. And. And. And. And.” in a Google doc caus... by KMag on Thursday May 05, 2022 @07:52PM (#31279580)
I think that maybe the author felt like finding the end of a loop stood out much better that way, instead of trying to distinguish the ends of conditional blocks from the ends of loops. If you're used to poorly formatted code in an ML PhD program, it does make some sense. I've worked with a bit of academic Fortran code for my mechanical engineering degree and can sympathize. Also, D and O are shorter reaches on the keyboard than { and }.

Yes, "OD" was definitely just "}". DO might have been ") {" to allow

  while (a < b DO
     ...
  OD
Re:Including “And. And. And. And. And.” in a Google doc caus... by AnimalMuppet on Thursday May 05, 2022 @11:48PM (#31281096)
That's hideous. The unbalanced parenthesis just grates.

The real answer is to just do something like

  }  // while
to show that it's the end of the loop rather than the end of an if, and not play ridiculous games trying to hide the curly braces.