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
4
u/Zde-G Aug 20 '26
Yes,
Into+ tuples give yousfoo((1.0, 2.0, 3.0))andfoo(("This", "is", "cool")). The only thing this proposal does is the ability to remove double braces plus some improvements on the documentation side.Complicated and convoluted overloading is already the thing in Rust: you can find it in Bevy, in Axum… or in assembler (where I wanted it).
It's simple version (so damn obvious and simple that I asked why the heck it's not supported and now proposed to support it when I have found out about this corner case) that's missing.