by Koiwai · 4y ago · 0 comments
That article is talking about performance, and as many have pointed out, it's better just use a 3rd variable(when there's no destructuring assignment) to swap and let compiler do its work.
I'm not saying syntax sugar is a bad thing.