OT: for (;;) {} vs while (true) {}
Dennis Ritchie via Digitalmars-d
digitalmars-d at puremagic.com
Fri Nov 25 11:04:36 PST 2016
I don't mean an infinite loop for (;;), and violation of the
concepts of structured programming, which put forward Dijkstra.
for (;;) {
...
if (condition) {
break;
}
...
}
outer: for (;;) {
...
if (condition) {
goto outer;
}
...
}
I.e. in system programming and I want to use `break` or `goto`,
because here we use imperative rather than declarative approach.
The following question arises. Are structured programming concept
of Dijkstra's right for writing system software?
More information about the Digitalmars-d
mailing list