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
123 recasts
580 reactions
Mark V.
@mikroskeem
If Python has it wrong, then other languages have it too - that being said, it's great that Python does not diverge too much with keywords from most commonly used languages.
1 reply
0 recast
3 reactions
Vitalik Buterin
@vitalik.eth
I do think there are a bunch of little things that all major programming languages got wrong! (because they often copy from each other) My least favorite is using ^ for xor. Extreme confusion.
1 reply
0 recast
1 reaction
Mark V.
@mikroskeem
I concur, but for the foreseeable future, I believe C maintains the golden standard for common keywords and operators. Writing algorithms from paper to code is probably painful with these quirks, but these can be learned (as a complete beginner it's hard, but as I’ve gotten used to it, honestly it's *not that bad*)
0 reply
0 recast
0 reaction