[Crowdsourcing] Is there any code you really wished used named function arguments?

52 points CouteauBleu

Hey everyone, I'm currently writing a report/analysis on the subject of named function arguments and trying to synthesize existing proposals and the debates around them.

As part of that, I'd like to gather real-life use-cases where people would like named args to be added in Rust. And I do mean real-life: ideally, I'd want code you wrote yesterday where you found yourself thinking "man, this would be a lot easier to read/write with named args!". I'd like to avoid hypothetical examples.

So, if you have any, please post them here! Analysis article is coming soon.

EDIT: To be clear, I'm not asking for people to tell me that named arguments are great / suck and you don't want them. I'm sure there are a lot of people with both opinions. I'm looking for specific examples with actual code. Though from the responses I've gathered so far, I guess this is a subject that gets people venting.