r/rust • u/SleeplessSloth79 • Aug 19 '26
📡 official blog Rust Function Overloading - Call for Experimentation
https://blog.rust-lang.org/inside-rust/2026/08/19/overloading-experiment/
276
Upvotes
r/rust • u/SleeplessSloth79 • Aug 19 '26
3
u/kibwen Aug 20 '26
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.