4 ms·
The 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
by dragonwriter 7y ago
The 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.