External Publication
Visit Post

[Pre-pre-RFC] "splatting" for named arguments and function overloading

Rust Internals [Unofficial] February 26, 2026
Source
Oh, I didn't mean to say "I don't want Rust-to-Rust overloading", just "it's not a goal of mine to get that". Where I'm coming from is: "tiny syntactic sugar gets us pretty nice FFI powers and also extends to named arguments which we wanted anyways". I love it when we get a lot of benefit for not much design complexity, something about this "fits well" in the language to my taste. I don't mind that this gives a Rust-to-Rust overloading feature. I'm sure some ppl will find APIs where this is really beneficial to have and the rest won't bother with the weird trait dances required.

Discussion in the ATmosphere

Loading comments...