Hacker News new | past | comments | ask | show | jobs | submit login

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.



I'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++


Oh, another thing I forgot is that you need a crate and a macro to zip 3 or more iterators together.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: