|
|
|
|
|
by zahlman
69 days ago
|
|
> A meta question is why this persists. It has the right qualities for a "party trick" This is discussed in a section near the end. But I feel like the discussion of why people care about using XOR to swap two values is missing an underlying discussion of why people would care about swapping values. As shown earlier in the division example, at the point where you would do the swap, typically you can just write the rest of the code with the roles of the values swapped. |
|