Galen Wolffit (wolffit) wrote,
Galen Wolffit
wolffit

continue;

Who came up with the semantics of the continue keyword in loop constructs?

The continue keyword is used to jump to the next iteration of a for or while loop - skipping the rest of the statements in the current iteration.  The dictionary defines continue as "To go on with a particular action or in a particular condition; persist".  These two concepts are in direct opposition to each other.  The continue keyword should really be skip or next or something, which would more clearly mean "stop the current iteration of the loop, and move on to the next one".


Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded 

  • 3 comments