| ▲ | ninkendo an hour ago | |
Care to say why you disagree? Using ..Default::default() means “whatever additional fields are added later, I don’t care”. Which is great until someone needs to add a field to the struct, and they rely on the compiler to tell them all the places that don’t have a value for the field (so they can pass the right value depending on the situation.) Then the callers with Default are missed, and bugs can result. Any time you say “I don’t care what happens in the future here”, you better have a good reason for that to be the case, IMO. | ||