DEV Community

Discussion on: Using code generation to survive without generics in Go

Collapse
 
joncalhoun profile image
Jon Calhoun

Why is this sad?

Sure, it isn't what you are used to, but it isn't really that bad. On the plus side, when new developers jump into the codebase it is way easier to understand the generated code than it is to use generics. I still miss them from time to time, but overall it hasn't had a major hit on my productivity.

Collapse
 
adnanademovic profile image
Adnan Ademovic • Edited

This sounds to me like a major case of Stockholm Syndrome :)

Generics can be easy to work with, and Go has almost everything needed to make that easy implementation - but I guess they decided not to