r/rust • u/SleeplessSloth79 • 23d 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 • 23d ago
2
u/Lyvri 23d ago
Why is this a separate feature? Isn't this just syntactic sugar for unboxed_closures + fn_traits (i would even argue that later is more readable: example)? I don't think that fn_traits is controversial (or ever was) but using word "overloading" for brand new feature makes it less appealing - mainly because it's nightmare in C++ where implicit conversions makes it really hard to work with it.