Just as a practice to learn Rust, I wrote a patch to change
std::num::pow(a, b) into a trait method of
use std::num::Pow; a.pow(b))
What do you think are the pros and cons of this approach, or is it just a matter of taste?
What I understand about UFCS is that we will be able to change
foo::bar::b(a) at any time, but not vice versa. (It’s interesting to see that it’s an opposite of what Dlang folks call UFCS.)