Re:My favorite Rust function
by codeflo on Saturday October 12, 2019 @06:51PM
(#21236921)
std::move's implementation not quite as elegant, though (this is from the GCC source):
[ Parent
| on HN ]
It’s a bit ugly because the standard library functions are replete with underscores, and of course it isn’t empty. But I still think it’s quite surprising, as most people would think it actually does some sort of semantic “move”.
> It’s a bit ugly because the standard library functions are replete with underscores, and of course it isn’t empty.
I'll be honest, neither of those are my top issue with that in terms of why I think it's ugly.