3 ms·
I think the biggest problem is that early exits make you forget you have to clean things up before returning (a bigger problem in C and sometimes Java, than it
by pooriaazimi 14y ago
I think the biggest problem is that early exits make you forget you have to clean things up before returning (a bigger problem in C and sometimes Java, than it is in modern dynamic languages). There are certainly other reasons, but I'll leave them to others that are more experienced!
- pooriaazimi 14y agoAs always, google is our friend. Some links: http://www.osdata.com/programming/loops/earlyexit.html http://www.osdata.com/programming/loops/earlyexit.html http://programmers.stackexchange.com/questions/118703/where-did-the-notion-of-one-return-only-come-from http://programmers.stackexchange.com/questions/118703/where-...