Vitalik Buterin
@vitalik.eth
"continue" might be the worst-named keyword in python. Like, consider this code: for i in range(100): if i % 5 == 0: continue print(i) It prints out numbers that are not multiples of 5. But if you give it to someone who is not experienced in python, they might think the exact opposite!
37 replies
120 recasts
635 reactions
Suppoint
@suppoint
You’re right — “continue” can be misleading at first glance. It sounds like it should make the loop keep going with all code included, but instead it skips ahead to the next iteration. A more intuitive name might have been something like “skip” or “next”.
0 reply
0 recast
0 reaction