3 ms·
Ugh, I hate assignment expressions. I liked that they were missing from Python. I've been coding in algolesque languages for 20 years and hiding assignments i
by Pxtl 7y ago
Ugh, I hate assignment expressions. I liked that they were missing from Python.
I've been coding in algolesque languages for 20 years and hiding assignments inside of expressions instead of putting them on the left like a statement has always tripped me up.
- jtdev 7y agoBut, but, but... now you don’t need to write that extra line of code! It’s going to make everything sooooo much better, code will practically write itself now. I’ll just leave this here: “There should be one—and preferably only one—obvious way to do it.”
- codr7 7y agoAt this point it's about as true as G not being evil. Which is fine by me, it was a silly idea to begin with. What you really want is separated concerns that compose well, obvious here doesn't mean anything over there.
- ewidar 7y agoWell there is now one obvious way to do most things that are targeted by this change, using the walrus operator.