Named Arguments are Just Structs: Anonymous Struct Parameters
The Rust Programming Language Forum
Named Arguments are Just Structs: Anonymous Struct Parameters
Anonymous Struct Parameters: Named Arguments are just Structs There's been a recent round of posts on named arguments in Rust: Botahamec's Named and Optional Arguments are Awesome, Steve Klabnik's Arguing about arguments, and Matthias Endler's We Have Named Arguments at Home. I've taken my original thoughts from 2016 and written up a design that starts from Endler's premise: Rust already has a named, reorderable, defaultable construct, the struct. The design removes the ceremony makes using a s...
0 comments
No comments yet.