[Python-ideas] Inline assignments using "given" clauses

Guido van Rossum guido at python.org
Thu May 10 11:10:50 EDT 2018

Please no, it's not that easy. I can easily generate a stream of +1s or -1s
for any proposal. I'd need well-reasoned explanations and it would have to
come from people who are willing to spend significant time writing it up
eloquently. Nick has tried his best and failed to convince me. So the bar
is high.

(Also note that most of the examples that have been brought up lately were
meant to illustrate the behavior in esoteric corner cases while I was
working out the fine details of the semantics. Users should use this
feature sparingly and stay very far away of those corner cases -- but they
have to be specified in order to be able to implement this thing.)

On Thu, May 10, 2018 at 10:26 AM, marky1991 . <marky1991 at gmail.com> wrote:

> If it just needs a stream of +1s, I personally like the "given" approach
> much more than the ":=" approach, for all of the many reasons repeated many
> times in the various email chains. (I preferred it as "as", but that's been
> struck down already) (and if it's between ":=" and not having them at all,
> I would rather just not have them)

--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180510/76817850/attachment.html>

More information about the Python-ideas mailing list