comp.lang.ada
 help / color / mirror / Atom feed
From: Paul Rubin <no.email@nospam.invalid>
Subject: Re: [Off-Topic] Python gets :=
Date: Sat, 21 Jul 2018 09:34:32 -0700
Date: 2018-07-21T09:34:32-07:00	[thread overview]
Message-ID: <87lga4fsyv.fsf@nightsong.com> (raw)
In-Reply-To: pivhvs$9sk$1@dont-email.me

Rene <rehartmann@t-online.de> writes:
> So it would more logical the other way round: = for assignment
> expression and := for assignment. But of course this is not possible
> because of backwards compatibility.

In principle it's fine to use the same symbol for both.  GvR picked =
for assignment, and then didn't want to use it for assignment
expressions because of the possible bug where someone says "if a=b"
(assignment) when they meant "if a==b" (comparison).  So he decided to
not have assignment expressions at all.  That lack was a source of 20
years of conflict in the Python community.  Finally he accepted the :=
proposal and that set off enough conflict in its own right, that he
stepped down as BDFL (leader) of Python.

      reply	other threads:[~2018-07-21 16:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-20 21:56 [Off-Topic] Python gets := Alejandro R. Mosteo
2018-07-21  5:47 ` Nasser M. Abbasi
2018-07-21  7:50   ` Paul Rubin
2018-07-21  8:37     ` G.B.
2018-07-21 10:31   ` Chris M Moore
2018-07-21 15:03     ` Rene
2018-07-21 16:34       ` Paul Rubin [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox