Date: Mon, 23 Oct 2023 17:24:06 +0000
I don't think it's particularly common that you will want a loop where you don't use an element of the range you're iterating over and you don't want to use the index; and that not only is a for loop the best tool for the job but also none of the alternatives which have been presented to you are a viable option.
And even in that case, I'm not sure the terseness of for(some_value) is a benefit over a loop which is more specific about what it's doing and why.
And even in that case, I'm not sure the terseness of for(some_value) is a benefit over a loop which is more specific about what it's doing and why.
Received on 2023-10-23 17:24:08