3 ms·
The way the post you're responding to was phrased is indeed hyperbolic. But I think there is a valid point that compiler performance concerns are a pretty uncon
by pcwalton 11y ago
The way the post you're responding to was phrased is indeed hyperbolic. But I think there is a valid point that compiler performance concerns are a pretty unconvincing reason to not have generics, especially in light of a demonstrated high tolerance for compiler performance regressions.
- tedunangst 11y agoWhy 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 11y ago[deleted]
- deleted 11y ago[deleted]
- pcwalton 11y agoYou're right, that was really stupid of me. I'll delete it.
- AnimalMuppet 11y agoComplexity in the type system can easily have a negative effect on compiler performance.