I think the framing is slightly off. I’m not aware of Rust ever having function overloading, so the question is not “why does Rust not support function overloading” but “what would allow Rust to support function overloading?” Features only get added if there’s a proposal, with justifications. I can’t remember, but I’m pretty sure there was never a proposal, and so therefore, no rejection of a proposal either.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
|
What is the reason for not having overloaded versions of fn?
|
7 | 978 | February 6, 2021 | |
| Dubtious ambiguity resolution for trait fns with the same name but different prototypes | 10 | 1398 | December 6, 2021 | |
| Overloading with tuples | 6 | 1425 | March 7, 2022 | |
| Discussion about overloading (forked from Pre-RFC: Named arguments) | 4 | 1029 | October 11, 2022 | |
| Post: Async Overloading | 17 | 1744 | November 25, 2021 |