[Tutor] Misc question about scoping
alan.gauld at btinternet.com
Fri Jun 4 22:02:25 CEST 2010
> Are you arguing that the if/else form is better than simply casting
> to bool because it is more explicit?
No, I'm simply offering a reason to use if/else in the general sense.
In practice, for this specific case, I'd go with the bool(expr) form.
Author of the Learn To Program website
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor