3 ms·
Wow. I would love to see this become real. There are so many cases where I want to be able to use assignment as an expression like in lisp and it is simply not
by hyperion2010 8y ago
Wow. I would love to see this become real. There are so many cases where I want to be able to use assignment as an expression like in lisp and it is simply not possible in python because of how locals works. This would (hopefully?) finally make it possible to assign names dynamically in python which is a feature that is sorely missing and leads to enormous amounts of code duplication where sometimes you have to write the same variable 3 times when you should only have to write it twice (the if statement example is exactly this). f-strings solved some of those issues, this looks like could solve some of the others.