in reply to A matter of style: how to perform a simple action based on a simple condition?
I've used all three, probably option two the most. Option three is somewhat slower, as it creates a scope (and creating and tearing down a scope takes some time). But this should only matter in a tight loop.
|
---|