5 ms·
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 block
by KMag 4y ago
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
- AnimalMuppet 4y agoThat'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.