News for hackers. Stuff that matters.
Re:Golang: How to Update APIs for Generics by _ph_ on Thursday September 16, 2021 @06:50AM (#28550124)
No. The generics can be added without this discussion to be resolved. It is about upgrading existing APIs to make full usage of generics. Take math.Min for example. Currently it compares floats. Without changes, it continues to do exactly that. The question now is, how to have a new version math.Min that fully uses generics, without destroying backwards compatibility for existing code. Resolving this most elegantly is desirably, but not a necessity. Especially it can be added a few releases later than the generics themselves.

There are no comments on this comment yet.