Carl Banks wrote:
As a compromise, howabout:

. if m > 20 where m=something():
.     do_something_with(m)

That's good, but first idea was about 'where' block that contains any expressions, that we need, for example function definition. the syntax you proposed has same problems as 'lambda'.


The main problem here (as some would see it) is that you can't do
something this:

. if m > 20 where (def m(): a(); b()):

exactly -- http://mail.python.org/mailman/listinfo/python-list

Reply via email to