[Python-ideas] PEP 572: Statement-Local Name Bindings, take three!

Guido van Rossum guido at python.org
Fri Mar 30 16:34:49 EDT 2018


On Fri, Mar 30, 2018 at 12:04 PM, Nikolaus Rath <Nikolaus at rath.org> wrote:

> On Mar 25 2018, Guido van Rossum <guido-+ZN9ApsXKcEdnm+yROfE0A@
> public.gmane.org> wrote:
> > I gotta say I'm warming up to := in preference over 'as', *if* we're
> going
> > to do this at all (not a foregone conclusion at all).
>
> I'm surprised that no one has mentioned it yet, so as a quick datapoint:
> Go also uses := for assignment, so there's some precedent.
>

It's irrelevant, because Go's solution for inline assignment is entirely
different. (And there was no question that := is commonly used for
assignment -- just look it up on Wikipedia.)

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


More information about the Python-ideas mailing list