News for hackers. Stuff that matters.
Re:What’s New in Python 3.8 by takeda on Monday October 14, 2019 @07:36PM (#21254042)
The reason why assignment expressions initially were not allowed in Python and why they had to introduce "walrus" was because in languages that used single equal sign for assignment enable to easily make bugs by typing "=" instead of "==".
Re:What’s New in Python 3.8 by jaynetics on Tuesday October 15, 2019 @03:28AM (#21256296)
I find it strange to sacrifice syntactical simplicity for bug prevention in a language that needs deep testing anyway because it's neither nil- nor type-safe. But maybe I'm just to used to inline "=".
Re:What’s New in Python 3.8 by pyrale on Tuesday October 15, 2019 @04:13AM (#21256484)
A partial solution was already introduced with `with x as y`.