3 ms·
This list is a little nit-picky. All the id() equivalencies only exist for optimization, and not out of some promise to the user. The walrus operator can be c
by erezsh 7y ago
This list is a little nit-picky.
All the id() equivalencies only exist for optimization, and not out of some promise to the user.
The walrus operator can be confusing, but any language can be made to look confusing. It's an advanced feature that should be used very scarcely (if at all).
It does point out a few real weak points in Python, but most of them require non-trivial usage of the language.
Meanwhile, in Javascript
> "a" + undefined
"aundefined"
Now that's what real WTF looks like.