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

João Santos jmcs at jsantos.eu
Fri May 11 04:49:06 EDT 2018

+1 to this reasoning. One of the main reason python is popular is because
code is easy to read, while ":=" would clearly not be as readable as
"given". For me the difference between "given" and ":=" is the same as
between python and C for loops.

On Fri, 11 May 2018 at 09:06 Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:

> Guido van Rossum wrote:
> > I'd need well-reasoned explanations
> My reasoning is essentially the same as what I've already
> said about "where". To summarise, "given" sounds like
> something an English-speaking mathematician would write,
> whereas ":=" doesn't even have an obvious pronunciation.
> Some variation on "given" just seems greatly more pythonic
> to me.
> --
> Greg
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180511/1d065f9f/attachment.html>

More information about the Python-ideas mailing list