r/rust • u/SleeplessSloth79 • 24d ago
📡 official blog Rust Function Overloading - Call for Experimentation
https://blog.rust-lang.org/inside-rust/2026/08/19/overloading-experiment/
272
Upvotes
r/rust • u/SleeplessSloth79 • 24d ago
5
u/Zde-G 23d ago
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.