6 ms·
I’m not convinced that limiting expressiveness (for example by not supporting generics) will make software easier to read and maintain. For smaller programs tha
by DandyDev 2y ago
I’m not convinced that limiting expressiveness (for example by not supporting generics) will make software easier to read and maintain. For smaller programs that might very well be true, but for me personally, having more expressiveness makes it easier to navigate bigger code bases because you don’t have to trudge through code duplication, unnecessary boilerplate etc.
- valyala 2y agoGenerics in Go have been appeared in 2022 (in Go1.18). There were many popular open source projects with big code bases written in Go before 2022 - Docker, Kubernetes, Prometheus, Caddy, InfluxDB, etcd, minio, Terraform, CockroachDB, Consul, Helm, VictoriaMetrics, etc. The absence of generics didn't prevent from writing and maintaining these projects. I'm unaware of popular projects in Go, which have been appeared after 2022 thanks to generics.