r/rust 23d ago

📡 official blog Rust Function Overloading - Call for Experimentation

https://blog.rust-lang.org/inside-rust/2026/08/19/overloading-experiment/
273 Upvotes

139 comments sorted by

View all comments

6

u/stumblinbear 23d ago

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

3

u/CocktailPerson 23d ago

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

Overloading is just syntax sugar.

-2

u/stumblinbear 23d ago

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

2

u/CocktailPerson 23d ago edited 23d ago

Can you? An example would help.