Steve Klabnik recently wrote about named arguments, optional arguments, default arguments, function overloading, and why most of that design space has historically made him nervous in Rust.
I agree with Steve.
In fact, I think I agree slightly more s…
I agree - Structs are kind of a nicer solution here. Especially because it’s pretty common to pass a whole set of options through the call stack.
In Python land you end up with functions with 30 arguments and when they want to pass them anywhere they give up and use kwargs which are completely awful and should almost never be used.
I agree - Structs are kind of a nicer solution here. Especially because it’s pretty common to pass a whole set of options through the call stack.
In Python land you end up with functions with 30 arguments and when they want to pass them anywhere they give up and use
kwargswhich are completely awful and should almost never be used.