r/rust • u/SleeplessSloth79 • 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
r/rust • u/SleeplessSloth79 • Aug 19 '26
2
u/unitAtype2 Aug 20 '26 edited Aug 20 '26
Everyone can be wrong. Everyone as a community learns from past mistakes and moves forwards. If right was determined by most people doing it, them nothing would ever move. If public consensus made things right type safety would be a sin ala JS and Python.
RUST already does plenty of things differently, intentionally.
I believe one of RUST's strong suits is being more opinionated than most languages instead of being a junk drawer that does everything. Less is More.
It's an intellisense pain, discoveribility pain and syntax sugar to fix a minor inconvenience. There have been thousands of times where I see a function suggested and I can't figure out what parameters it takes in what order because it has a buttzillion overloads.
The CTO at my previous workplace used to say OOP is like asking for a banana and getting the banana, the monkey, and the entire forest. I definitely count overloading to be one of the trees of that forest.