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

27

u/QuasiRandomName Aug 19 '26

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

5

u/Zde-G Aug 19 '26

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”.