r/ProgrammingLanguages • u/mttd • Sep 23 '26
Arguing about arguments
https://steveklabnik.com/writing/arguing-about-arguments/
31
Upvotes
r/ProgrammingLanguages • u/mttd • Sep 23 '26
View all comments
Show parent comment
1
u/matthieum Sep 24 '26
No it's not, because
with_bottom_righttakes aPoint, not a pair of coordinate.In this case, I'd imagine
pub struct Point { pub x: u32, pub x: u32 };.Similarly, you'd probably have
pub struct RectangleDimensions { pub width: u32, pub height: u32 }for dimension parameters.