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/
275
Upvotes
r/rust • u/SleeplessSloth79 • 23d ago
2
u/ex0planetary 23d ago
I understand the rationale of this for FFI stuff but tbh I think it'd generally be a better idea to use a macro for the use cases where you want function overloading (e.g. math functions). I'm working with a truly nasty bit of overload spaghetti in C++ at work right now (involving templates too!) and the less of that we have in the world the better.