Just to add to that: you can avoid such horrible api by making the fn accepting a whole struct with the values. You can then additionally impl `Default` so that you don't have to specify all values all the time.
So there is no real benefit for Rust having overloadable functions.
This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!
Just to add to that: you can avoid such horrible api by making the fn accepting a whole struct with the values. You can then additionally impl `Default` so that you don't have to specify all values all the time.
So there is no real benefit for Rust having overloadable functions.