3 ms·
In my experience, Rust's multiple named functions is usually (not always) more clear than multiple function overloads, and practically always better than constr
by nyanpasu64 5y ago
In my experience, Rust's multiple named functions is usually (not always) more clear than multiple function overloads, and practically always better than constructor overloads (you'll never convince me that std::vector's constructors are sane). However (IIRC) I wish it was possible in Rust to abstract over arity, in the case of function forwarding and tuple overloading.
- tialaramex 5y agoI'd certainly like to be able to write std::cmp::max(a, b, c, d) and find the maximum of the four parameters. But even when I most want that, I certainly don't want it enough to use C++
- nyanpasu64 5y agoOh, another thing I forgot is that you need a crate and a macro to zip 3 or more iterators together.