27
Arguing about arguments
(steveklabnik.com)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
With newtypes you can also emulate named args with a single struct. This also allows them to be passed on together.
Then the call site looks like this:
Yeah, though in those cases you might get an extra question about why
rectis a function and not a method, e.g.I assumed the rect is a method on something like a graphics context or physics engine, but yeah.
Yeah, decent assumption, I'll tone down my comment a bit.