3 ms·
Structured programming is a state of mind. You just need to use the tools you have. Even relatively primitive languages such as FORTRAN IV can do it. Let's say
by PhantomGremlin 12y ago
Structured programming is a state of mind. You just need to use the tools you have. Even relatively primitive languages such as FORTRAN IV can do it.
Let's say you want to write the equivalent of this C code:
if (i < 10) {
j = 17;
k = 22;
} else {
j = 42;
k = 69;
}
in FORTRAN IV. Here's how I was taught to do it, back in the not-so-good old days before my college even had a C compiler:
IF (I .LT. 10) GOTO 100
J = 42
K = 69
GOTO 200
100 J = 17
K = 22
200 CONTINUE
- dllthomas 12y agoYou seem to be addressing the title rather than the meat of the paper. If it's the same version as is included in Literate Programming (as I believe it to be), I highly recommend reading through it.