External Publication
Visit Post

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

Rust Internals [Unofficial] February 23, 2026
Source

That's an interesting example because I'd want .sort(), .sort(by: comparison_function) and .sort(by_key: key_function), without allowing .sort(by: comparison_function, key: key_function). My proposal above cannot express that.

Discussion in the ATmosphere

Loading comments...