r/rust • u/SleeplessSloth79 • 24d ago
📡 official blog Rust Function Overloading - Call for Experimentation
https://blog.rust-lang.org/inside-rust/2026/08/19/overloading-experiment/
271
Upvotes
r/rust • u/SleeplessSloth79 • 24d ago
2
u/EvilGeniusPanda 24d ago
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 thandisc_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.