3 ms·
> A bunch of pioneer project like docker, kubernetes, etcd, prometheus etc. has been built with go and I don't believe that the maintainers suffered lack of gen
by jasonwatkinspdx 8y ago
> A bunch of pioneer project like docker, kubernetes, etcd, prometheus etc. has been built with go and I don't believe that the maintainers suffered lack of generics and error handlers.
Here's an experience report from k8s: https://medium.com/@arschles/go-experience-report-generics-in-kubernetes-25da87430301 https://medium.com/@arschles/go-experience-report-generics-i...
They've been using a code generator as a work around: https://github.com/google/gvisor/tree/master/tools/go_generics https://github.com/google/gvisor/tree/master/tools/go_generi...
- Arzh 8y agoI think code generators are a better path than having the compiler generator the code for you. It's nice to look and see what is about to be built instead of waiting for it to be built then trying to debug with breakpoints.