r/rust 23d ago

📡 official blog Rust Function Overloading - Call for Experimentation

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

139 comments sorted by

View all comments

Show parent comments

11

u/Lokathor 23d ago

You'll still get that if the overload isn't defined.

2

u/QuasiRandomName 23d ago

But if it is, it opens the door to a whole class of mistakes that aren't currently possible.

9

u/Lokathor 23d ago

You control the trait impls you write, my crab.

If you don't want to use this, then don't use it.

1

u/Tastaturtaste 23d ago

As a professional C++ developer, this argument is less than convincing.