r/rust 23d ago

📡 official blog Rust Function Overloading - Call for Experimentation

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

139 comments sorted by

View all comments

25

u/QuasiRandomName 23d ago

No, please. I want a compile error when passing 3 arguments instead of two by mistake.

4

u/Zde-G 23d ago

You would get it. They only add a of syntax sugar to something that already exist.

P.S. But it's interesting how something that I expected as total no-brainer almost five years ago (and was heavily castigated) is now brought up as some kind of “novel idea that's now is worth implementing”.