Rust Function Overloading - Call for Experimentation

37 points by madsmtm


junon

I actually hope this doesn't become more ergonomic, or at least, not for Rust code. Overloading is a huge pain in the side of C++ codebases where it's unclear of the function's behavior just looking at the arguments being passed in, even if you're familiar with the function(s) that can be called. It's one of the explicitness items of Rust I really appreciate.

This feels like it's going to be abused quite a bit despite being for C++ primarily, in code that doesn't touch C++ at all.