HN user

Thorham

17 karma
Posts0
Comments21
View on HN
No posts found.

You're wrong. Remember that XOR works on individual bits. If what you're saying was true, then swapping bits that are both set to 1 would also fail, which means this algorithm wouldn't work at all.

Edit: Ignore this post, I misread the original post as saying swapping the same values would fail.

That first one is madness! That's not even goto-phobia, that's just not knowing what arrays and loops are.

The third one is true goto-phobia of course. Crazy how people can't see the mess they make by avoiding goto for the sake of avoiding goto.