My first reading of your code made me say "Hmmm, it could print the error twice... {Re-reading} Oh, wait, the LogMess and the return are in the same statement, and the return will (of course) exit the loop."
Indeed, one tiny difference between my approach and yours is that the latter will always iterate on all (both, in this case) items while the former will exit early. Of course I didn't mention "performance" and I was not thinking of it. Do not even dare to suppose I had the slightest idea of micro-optimizing! ;-)
In reply to Re^4: Any idea what this does
by blazar
in thread Any idea what this does
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |