Results 1 to 4 of 4
Thread: Coding Question
-
-
01-13-10, 01:01 PM #2
Re: Coding Question
The general argument is that it makes it harder to understand and maintain the code if there are multiple exit paths.
However that's a general argument, and I have plenty of examples where the code was more readable and easier to maintain with multiple returns.
Really, what it comes down to is making the code more readable and maintainable, so I personally don't make a rule about it, but simply choose whatever achieves that goal per situation (so I guess that is my rule).
-
-
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks