Re:GOTOphobia Considered Harmful (In C)
by bee_rider on Sunday February 26, 2023 @08:26PM
(#34951864)
The funny thing is, I mostly program in Fortran (thus the interest in this construct). It is nice for expressing “this iterative method must be run at least once.” Unfortunately at some point I absorbed the name that comes from the C-ism, haha.
[ Parent
| on HN ]
Re:GOTOphobia Considered Harmful (In C)
by spacechild1 on Monday February 27, 2023 @04:51AM
(#34954659)
May I ask what field you're working in? Physics?
A less ambiguous name for those is repeat/until, as seen in Pascal and its descendants - I don't recall any language that uses that syntax for anything other than a postcondition loop.