[Python-ideas] PEP 572: Statement-Local Name Bindings, take three!
python-ideas at mgmiller.net
Mon Apr 2 16:51:50 EDT 2018
Yes, I first came across := when learning (Turbo) Pascal in the early 90's.
However golang managed to screw it up—it only works there as a "short
declaration AND assignment" operator. You can't use it twice on the same
variable! Boggles the mind how experienced designers came up with that one. ;-)
Maybe Algol did it that way? (before my time)
I found Pascal's syntax, := for assignment, = and <>, for tests about close to
perfect in ease of learning/comprehension as it gets, from someone who studied
math before C anyway.
On 2018-03-30 12:04, Nikolaus Rath wrote:
More information about the Python-ideas