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,FREEMAIL_FROM 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: Rene Newsgroups: comp.lang.ada Subject: Re: [Off-Topic] Python gets := Date: Sat, 21 Jul 2018 17:03:23 +0200 Organization: A noiseless patient Spider Message-ID: References: <_XD4D.1448880$Xa4.1339160@fx29.am4> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 21 Jul 2018 15:03:24 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="51822d66f7b6294cc0b12412ee11b844"; logging-data="10132"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19imnQYcng4Hpf1dV3X4zvlzsdKqGNsgK4=" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Cancel-Lock: sha1:WXvpAc39Dd+8y47vReLooZ+275I= In-Reply-To: <_XD4D.1448880$Xa4.1339160@fx29.am4> Content-Language: de-DE Xref: reader02.eternal-september.org comp.lang.ada:53935 Date: 2018-07-21T17:03:23+02:00 List-Id: Am 21.07.2018 um 12:31 schrieb Chris M Moore: > On 21/07/2018 06:47, Nasser M. Abbasi wrote: >> On 07/20/2018 04:56 PM, Alejandro R. Mosteo wrote: >>> PEP 572 has been accepted: >>> https://www.python.org/dev/peps/pep-0572/ >>> >> >> I find it amazing that assignment has just been added >> to a language created almost 30 years ago. >> >> Was not a variable assignment something already >> known in those dark ages back in 1989 when Python was >> designed? > > It's assignment expression.  See > https://lwn.net/SubscriberLink/759558/1a4832a1ea96539f/ > > Interesting from an Ada perspective only in that they chose := > Using := is somewhat confusing as = is used for assignment expression in C-like languages, whereas Pascal-like languages (as Ada) don't have assignment expression and use := for assignment. 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.