Comment Comment by christophilus > how do you know which members of the struct really need to be populatedInterfaces + duck typing? Your function shouldn’t ask for the struct, but rather for an interface describing what it needs.Practically, though, I often just ask for the struct because I’m a slob. parent christophilus 4 years ago
Interfaces + duck typing? Your function shouldn’t ask for the struct, but rather for an interface describing what it needs.
Practically, though, I often just ask for the struct because I’m a slob.