[Python-ideas] Where-statement (Proposal for function expressions)
Aahz
aahz at pythoncraft.com
Sat Jul 18 02:47:55 CEST 2009
[quote-trimming ahead]
On Sat, Jul 18, 2009, Steven D'Aprano wrote:
>
> In a real sense, the proposed 'where' block breaks the flow of reading
> code. Normally, reading a function proceeds in an orderly fashion from
> the start of the function to the end in (mostly) sequential order, a
> bottom-up process:
>
> But the where clause introduces *look-ahead* to the process:
>
> Look-ahead is simply harder on the reader than reading sequentially.
>
> You can abuse any tool, write spaghetti code in any language, but some
> idioms encourage misuse, and in my opinion this is one of them.
This is the clearest indictment yet -- I've mostly been ignoring this
thread figuring it'll die a natural death on its own, but this makes me
add my own -1 to the ``where`` clause.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur." --Red Adair
More information about the Python-ideas
mailing list