whoareu@lemmy.ca to Programming@programming.devEnglish · 4 months agowhich python trick or hack you know that you would want to share?message-squaremessage-square41fedilinkarrow-up191arrow-down12
arrow-up189arrow-down1message-squarewhich python trick or hack you know that you would want to share?whoareu@lemmy.ca to Programming@programming.devEnglish · 4 months agomessage-square41fedilink
minus-squareGutek8134@lemmy.worldlinkfedilinkarrow-up21·4 months agoWalrus operator - := - envious of the C devs being able to simultaneously assign and return a value? Envy no more, we’ve got it.
minus-squareSpeakinTelnet@sh.itjust.workslinkfedilinkarrow-up15·4 months agoFor those curious about the drama & lack of wide adoption surrounding the walrus operator https://dev.to/renegadecoder94/the-controversy-behind-the-walrus-operator-in-python-4k4e It’s a shame because it’s a really nice feature.
Walrus operator - := - envious of the C devs being able to simultaneously assign and return a value? Envy no more, we’ve got it.
For those curious about the drama & lack of wide adoption surrounding the walrus operator
https://dev.to/renegadecoder94/the-controversy-behind-the-walrus-operator-in-python-4k4e
It’s a shame because it’s a really nice feature.
I am the Walrus