News for hackers. Stuff that matters.
Re:Generics enabled by default in Go tip by mikepurvis on Saturday August 21, 2021 @01:21AM (#28254450)
Isn't that a fairly easy policy to enforce, though? Basically you blanket ban them in your linter, and only create exceptions for specific cases like containers, parsers, situations where it saves you a cast, whatever.

I know that doesn't help you when you have to interact with the larger Go ecosystem on Github, but at least within an org, it shouldn't be terrible. Certainly the culture of golang is well established— millions of lines of it have been written generic-free, so I'd expect that it will only be applied where it really is an obvious improvement.

There are no comments on this comment yet.