News for hackers. Stuff that matters.
Re:Golang: How to Update APIs for Generics by arghwhat on Thursday September 16, 2021 @10:37AM (#28552376)
Of course it can, the problem isn't writing APIs, it's rewriting old APIs that have static types to also be generic without breaking old code that rely on the static types.

E.g., if you write the number constant "1" as arg to a method taking "float64", it's implicitly converted to that. If the method takes a T, you instead have an int.

There are no comments on this comment yet.