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!
43 replies
112 recasts
579 reactions
⋆♱ 9̷0̷†մղ ♱⋆
@90tun
what then should be used, skip?
2 replies
0 recast
2 reactions
Lighthaus
@lighthaus205
Grok suggested the following (in that order of relevance): 1. skip 2. bypass 3. next 4. ignore 5. passover skip and next are the most intuitive imo.
1 reply
0 recast
1 reaction
⋆♱ 9̷0̷†մղ ♱⋆
@90tun
i’d say skip, them ignore, passover then next. Simply because unlike continue or next that on the surface points out you’re moving to the subsequent iteration, the others like skip, ignore point out that you’re doing something to the current iteration that satisfies the condition.
0 reply
0 recast
0 reaction