[Python-ideas] SyntaxWarning for for/while/else without break or return?
debatem1 at gmail.com
Thu Oct 8 16:10:53 CEST 2009
On Thu, Oct 8, 2009 at 9:44 AM, Gerald Britton <gerald.britton at gmail.com>wrote:
> re warnings: The compiler is simply not smart enough to know if a
> program is doing what a programmer wants. If a given program is
> working quietly according to its specifications, we should do nothing
> to disturb the peace.
I grant you that compilers *shouldn't* be smarter than programmers,
but I highly doubt that any program including an extraneous else
clause is "working according to specifications", and that's the point
of this proposal.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas