Re: Naming of "continue"
Derek Parnell wrote:
>
> I think of it in terms of 'iterations'.
>
> 'next' (iteration) to me strongly suggests that the current iteration ceases
> to execute and control is immediately given to the next iteration of the loop,
> using the next value of the index/counter.
>
> 'continue' (iteration) suggest that the current iteration continues executing.
>
> 'repeat' (iteration) suggest that the current iteration is repeated using the
> same index value.
>
> 'again' (iteration) is identical to 'repeat'.
>
I was thinking more about it and common uses of the words that we may already
use. For instance, a CD player. A CD player on repeat mode will do as you say,
repeat the same song over and over. Continuous will loop from 1st song on CD to
last, then start again at the first. There is no again. But speaking in terms of
iterations, I think you are right, next makes the most sense in that context.
--
Jeremy Cowgar
http://jeremy.cowgar.com
|
Not Categorized, Please Help
|
|