
Feb. 14, 2021
10:42 p.m.
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