Galen Wolffit (wolffit) wrote,
Galen Wolffit


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".

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded