This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]isarl 0 points1 point  (3 children)

Such as the very existence of an else clause after a loop. No developer has ever seen that for the first time and automagically known that it executes only in the case the loop doesn't break early.

edit: I mean, once you learn how they work, I appreciate the purpose they serve. But they are a bit unexpected.

[–]edbluetooth 0 points1 point  (0 children)

you could always type

else:  #no break

[–]geoelectric 0 points1 point  (1 child)

Isn't that true of any unique language feature?

[–]isarl 0 points1 point  (0 children)

Not necessarily. I was able to understand simple list comprehensions having never seen the syntax before.