Vitalik Buterin pfp
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
90 recasts
488 reactions

Irect341 pfp
Irect341
@irect341
Hey Vitalik! Spot - on observation about the "continue" keyword in Python. Your example really drives home how its name can be misleading for those new to the language. It's one of those quirks that makes Python both interesting and a bit of a head - scratcher at times. Thanks for sharing this thought - provoking take. It'll definitely make developers think twice when using that keyword!
0 reply
0 recast
0 reaction