Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why not consult the go faq to find their reasoning for omitting generics?

> Generics are convenient but they come at a cost in complexity in the type system and run-time. We haven't yet found a design that gives value proportionate to the complexity, although we continue to think about it.

The word performance doesn't appear in that paragraph.



[deleted]


[deleted]


You're right, that was really stupid of me. I'll delete it.


Complexity in the type system can easily have a negative effect on compiler performance.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: