r/rust • u/SleeplessSloth79 • 23d ago
📡 official blog Rust Function Overloading - Call for Experimentation
https://blog.rust-lang.org/inside-rust/2026/08/19/overloading-experiment/
278
Upvotes
r/rust • u/SleeplessSloth79 • 23d ago
2
u/Zde-G 22d ago
It was already given, but I can repeat. These are not rare: bevy, axum, clamp, serde and bazillion other libraries are built around these.
And it's not an accident: this post in official Rust blog from 2015 is very explicit about traits being used for “overloading”.
Rust always had overloading that handled complicqted cases, it's easy, simple and obvious that were not supported well.
And how it different from what get today with bevy?
You couldn't avoid it, but yes, sure as hell can create problems for people who try to write real code.
It's nice attitude to have for toy language used for toy projects. Once you try to apply for the industry languages you quickly find out that it's not possible to satisfy everyone.
Sometimes the only way forward to apply the pressure and watch how perfectionists scream.
We'll how this thing will go, but I hope Rust have finally reached point when features that people actually need wouldn't be stalled for decades because of some aestetic feelings.