2 ms·
I am kind of new to all coding. Can you explain what is wrong with that code?
by hlindwin 7y ago
I am kind of new to all coding. Can you explain what is wrong with that code?
- dragonwriter 7y agoThe catch block merely does exactly what the loop would do at the end end anyway; it's no different than: catch: pass (That is, if the pseudocode isn't making a Rubyish distinction between exception handling and control flow [rescue vs. catch] it's just an extremely verbose way of silently swallowing exceptions, and if it is making a Rubyish distinction it's an extremely verbose way of doing nothing and the whole try/catch construct is unnecessary.)
- hlindwin 7y agoAh, I see that now with the while loop restrictions. Thank you.