3 ms·
The prevent the control flow from continuing in that direction, which prevents those variables from ever existing. Early return is nothing like exceptions. Ear
by mgaunard 4y ago
The prevent the control flow from continuing in that direction, which prevents those variables from ever existing.
Early return is nothing like exceptions. Early returns needs to return something which passes the problem to someone else. It's also a choice to do it at all.
- jstimpfle 4y agoYou're completely missing my point. The point is that both prevent the control flow from continuing in that direction. Both prevent the variables declared later to ever "exist".