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!
46 replies
109 recasts
568 reactions

Thuoggbit86 pfp
Thuoggbit86
@thuongeth
Exactly! The name continue is so misleading—it sounds like it would keep going with the loop’s body, but it actually skips it. Maybe skip would’ve been a better name for clarity! 😅
0 reply
1 recast
1 reaction