Re: [Python-ideas] Language proposal: variable assignment in functional context

2017-06-21 Thread Joao S. O. Bueno
I could emulate the "where" semantics as described by Steven using the class statement and eval : I guess it is useful if someone want to try refactoring a piece of "real world" code, and see if it really feels better - then we could try to push for the "where" syntax, which I kinda like: (This

Re: [Python-ideas] Language proposal: variable assignment in functional context

2017-06-21 Thread Lele Gaifax
Brice PARENT writes: > Examples: > > with b = a + 1: > y = b + 2 I don't think that could work, because the with "arguments" should be expressions, not statements. However, IIRC someone already suggested the alternative with a+1 as b: y = b + 2 but that clashes with the ordinary "conte