by candiddevmike · 6y ago · 0 comments
For the record, I'm indifferent on the chosen module solution being right or wrong. My ideal module tool is something like npm, but it shows me the impact: diff the module changes, look at my code, and tell me what's impacted by the upgrade. Giving developers more information when upgrading libraries will go a long way towards making "update your libraries" a regular housekeeping task.
Nothing of this has to do with or would be better with generics.
There are millions of ways to break users with an update that machines can't detect. For example:
Old version:
func Lt(a, b YourType) bool { return a < b }
New version:
func Lt(a, b YourType) bool { return a >= b }
This is not specific to Go.