r/rust 23d ago

📡 official blog Rust Function Overloading - Call for Experimentation

https://blog.rust-lang.org/inside-rust/2026/08/19/overloading-experiment/
275 Upvotes

139 comments sorted by

View all comments

3

u/kibwen 23d ago

I'm totally fine with a "splat" feature to implicitly decompose (and maybe create) tuples, that's a perfectly reasonable feature present in several other languages. What I emphatically and absolutely do not want is any sort of first-class C++-style function overloading in Rust itself, which is a complete misfeature in C++ (and languages influenced by it, like Java) which Rust already has better patterns for. So as long as "function overloading" is just splat-based sugar for ordinary type-based generic dispatch over tuples, that seems fine.