← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #233507]: Cleanest way to search if at least one image of a set is present

 

Question #233507 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/233507

RaiMan posted a new comment:
--- but cannot stand break
break and continue are first class features for loops in languages, that do not have goto statements.

You are doing nothing else with your while, but put the "break" into the
loop head.

Using inline break and continue makes your code more readable and
debuggable, since it is always clear, where you leave the loop under
which condition before it is ended normally.

Other languages have more powerful break and continue, since they allow
to specify the target loop head in nested loops.

All the best.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.