3 ms·
"By the way, if you don’t like goto statements, don’t read this. (And don’t read any other programs that simulate multistate systems.)" Knuth, on the Adventure
by kroger 13y ago
"By the way, if you don’t like goto statements, don’t read this. (And don’t read any other programs that simulate multistate systems.)" Knuth, on the Adventure game [1]
Knuth's "Structured programming with go to statements" [2] is always a good read.
[1] http://www.literateprogramming.com/adventure.pdf http://www.literateprogramming.com/adventure.pdf
[2] http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.103.6084 http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.103....
EDIT: formatting