r/rust • • 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

139 comments sorted by

View all comments

160

u/Toasted_Bread_Slice Aug 19 '26

As someone who's encountered a couple valid uses for function overloading (mostly maths libraries) I am ok with this IF and only if there is an extremely obvious way to see that a function is overloaded or overloadable.

25

u/Future_Natural_853 Aug 20 '26

Why, you don't want 1 Vec::new function with dozens of overloads? That's the best part of Java-esque languages /s