What idiom do you use? I strongly prefer using "or" myself,
but there is nothing wrong with using || as long as you
get the parens straight. Besides, the 'debugging hell' tends
to teach a very important lesson on the importance
of precedence. :)
| [reply] |
I not only prefer "or", I have gone as far as coercing
coworkers to use it as well, for the simple reason that "or" always
works as expected in this type of statement. I'm a strong believer in Defensive
Programming, and avoiding "debugging hell" at all costs.
I honestly don't think that the lesson in this case is worth
the potential time waste. This is only my opinion, I am definitely
not telling anyone else here what to do.
| [reply] |