4 ms·
Can't you just do that with passing a struct + Default[1]? [1] https://doc.rust-lang.org/std/default/trait.Default.html https://doc.rust-lang.org/std/default/t
by vvanders 9y ago
Can't you just do that with passing a struct + Default[1]?
[1] https://doc.rust-lang.org/std/default/trait.Default.html https://doc.rust-lang.org/std/default/trait.Default.html
- static_noise 9y agoIt seems like you can... but then this could be done implicitly at no loss and lead to less clutter. It's not hard to understand what default parameters or named parameters do.