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!
47 replies
121 recasts
579 reactions
I'm Darmian The Starceed
@musteefresh
True, ‘continue’ sounds like it means keep going with what’s next, not skip this iteration. A clearer name might’ve been something like ‘skip’ or ‘next’. But hey, once it clicks, it sticks.
0 reply
0 recast
0 reaction