6 ms·
You can just implement the Default trait yourself and set sane defaults right? At least that’s how I use it, implement the default trait manually to easily retu
by slashink 5y ago
You can just implement the Default trait yourself and set sane defaults right? At least that’s how I use it, implement the default trait manually to easily return a initialized struct.
- hota_mazi 5y agoYes, I was referring to when you derive the trait, I should have been more specific. Also, this doesn't help at all for function invocation, which is still very cumbersome in Rust in the absence of default parameters, named parameters, and overloading.