On Mon, Feb 08, 2021 at 02:45:57AM -0500, David Mertz wrote:

> I don't like the actual proposal. It weirdly combines almost orthogonal
> concepts into the same block statement.

I'm curious why you say that if and with are "almost" orthogonal 
concepts? They seem completely orthogonal to me. You can mix and match 
them in literally every combination:

* if alone

* with alone

* if block inside the with block

* with block inside the if block

* with block inside the else block

etc. Why single out one special case?

But generalising this is worse. We don't want Perlish one liners.

    # where the process ends
    if condition: for x in items: with thingy as cm: if predicate: while cond: 
for y in stuff: do_something()



-- 
Steve
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/VZ73FUMCS5V7T5Y5IS7NXAUXMEMOMDJS/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to