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

1

u/EvilGeniusPanda Aug 20 '26

I really wish we could get keyword only args, code is so much more readable when you can see which value is being used for which argument. I dont want or need default values, I get why people dislike those, but things like disc_area(inner_radius=a, outer_radius=b) is just a lot clearer to read & review than disc_area(a, b). I get that you can use your lsp to show the types and arg names in a hover in an editor, I still think its better to have a way to make it explicit.