Advice like this is frustratingly non-general: you might be doing addition over GF2[1] in which case `fn add(a, b) { a ^ b }` is a perfectly sound function. I've worked on a codebase, in Rust, where that's the case[2]!
[1]: https://en.wikipedia.org/wiki/Finite_field_arithmetic#Effect...
[2]: https://github.com/trailofbits/reverie/blob/master/src/algeb...