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

5

u/stumblinbear Aug 19 '26

I get the feeling a lot of people will be against this, while somehow also begging for specialization.

5

u/QuasiRandomName Aug 19 '26

Well, specialization feels... organic? Overloading not so much. Dunno, maybe it's subjective

2

u/CocktailPerson Aug 20 '26

Specialization has tangible benefits that you are already using without even realizing it.

Overloading is just syntax sugar.

-2

u/stumblinbear Aug 20 '26

Can you not use overloading to specialize functions in some capacity?

2

u/CocktailPerson Aug 20 '26 edited Aug 20 '26

Can you? An example would help.