3 ms·
> it’s very likely large parts of the standard library will get rewritten with them soon It's not. The Go 1 backwards compatibility promise means existing inte
by xyzzy_plugh 5y ago
> it’s very likely large parts of the standard library will get rewritten with them soon
It's not. The Go 1 backwards compatibility promise means existing interfaces won't change. Take the Math package for instance: I'm not aware of any planned breaking changes -- if you are, please share. If they were to add support for non-int64 operations, they would likely be separate functions or a new package. This, without sweeping code changes, nothing changes.
- stitched2gethr 5y agoThe Go team has been discussing converting some functions to generics _if_ they can maintain the compatibility guarantee. Without verifying, I believe this was discussed in Go Time ep 216.