From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: [Off-Topic] Python gets := Date: Sat, 21 Jul 2018 09:34:32 -0700 Organization: A noiseless patient Spider Message-ID: <87lga4fsyv.fsf@nightsong.com> References: <_XD4D.1448880$Xa4.1339160@fx29.am4> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="c5b974d967a3f385bc3bbdf02d700ee6"; logging-data="9822"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kcqoSN7LawitYjYZI6ELC" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cancel-Lock: sha1:wGmkS/afec+5IshkN3eH+EuBZqk= sha1:V86eCMQujZ7/fiDHUujMxjSO6vs= Xref: reader02.eternal-september.org comp.lang.ada:53936 Date: 2018-07-21T09:34:32-07:00 List-Id: Rene 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.