[Python-ideas] for/else syntax
Stephen J. Turnbull
stephen at xemacs.org
Thu Oct 1 07:17:45 CEST 2009
Yuvgoog Greenle writes:
> I wouldn't modify the way for/else behaves btw. I would
> either:1. rename the "else" to something else for "for" and "while"
> loops
If you prefer some existing keyword, -0.75, else -1.
Note: As a native speaker, since "for ... else" isn't English, I would
certainly look up the semantics before using the syntax. This is very
probably true for Japanese as well, who are far better at (consciously)
remembering English syntax than native speakers are. I don't know
about other non-natives.
> 2. remove the syntax altogether.
-1. It's occasionally useful, and when it is, it's nice and concise.
More information about the Python-ideas
mailing list