comp.lang.ada
 help / color / mirror / Atom feed
From: Rene <rehartmann@t-online.de>
Subject: Re: [Off-Topic] Python gets :=
Date: Sat, 21 Jul 2018 17:03:23 +0200
Date: 2018-07-21T17:03:23+02:00	[thread overview]
Message-ID: <pivhvs$9sk$1@dont-email.me> (raw)
In-Reply-To: <_XD4D.1448880$Xa4.1339160@fx29.am4>

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.

  reply	other threads:[~2018-07-21 15:03 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 [this message]
2018-07-21 16:34       ` Paul Rubin
replies disabled

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