I don't know if I agree with that last statement but if so, that way is so inefficient it could be called wrong I mean it is literally just wasting away CPU time. If the task you're doing requires that, you need to rethink your logic.