The goto statement is just a tool, but if you insist on avoiding it when it makes everything easier then so are you.
http://www.ecn.purdue.edu/ParaMount/papers/rubin87goto.pdf
- a good argument of when to use goto.
http://www.ecn.purdue.edu/ParaMount/papers/acm_may87.pdf
- the argument continues, and the example gets longer and longer... the guy can't even write the C example correctly, lol.
http://www.cs.utexas.edu/users/EWD/transcriptions/EWD10xx/EWD1009.html
- dickstra blabbers again and "derives" a solution using his gotoless method, and comes up with an even more complex solution. LOL.
/prog/, how would you write the example?
I pose the following problem to a group of EXPERT PROGRAMMERS: “Let X be an N x N matrix of integers. Write a program that will print the number of the first all-zero row of X, if any.”