1619Re: [jslint] Re: Filtered for...in
- Nov 19, 2010Erik,
> In my opinion this is little different than this greatly-upvoted StackI deleted my Stack Overflow account in late spring. Popularity is not a
correlation to accuracy.
> The top 533 votes on the 3-most-upvoted answers all weigh in that theyThere is nothing wrong with multiple exit points from a container of
> think the "one return per procedure" rule is, well, stupid.
logic. If you have all that you need then destroy the current loop and
exit the current container as early as possible. This is the only way I
could make my markup beautification logic perform in an acceptable time
> I think this is one of those cases: I don't want to exit the loop, IThe point of the continue statement is to break the current index of a
> don't want a huge if block polluting my function, I just want to
> quickly go to the next loop if the circumstances for this invocation
> are wrong.
loop provided a condition without breaking from the loop. Since you are
not wanting to exist the loop it would make more sense to plan around
that condition where you do exit prematurely thereby negating the use of
Austin Cheney, CISSP
- << Previous post in topic Next post in topic >>