How to do named function arguments in Rust 🐱

304 points Veetaha

DISCLAIMER: this post doesn't propagate named arguments everywhere. You should use regular Rust functions with positional parameters syntax if your functions have less than 3 or 4 parameters, they don't need optional parameters or boolean arguments only in which case named arguments shine.

Blog post link