36 ms·
Without generics, you can never write a type safe datastructure. I can't imagine the hubris that thinks the language already contains all of the datastructures
by moultano 11y ago
Without generics, you can never write a type safe datastructure. I can't imagine the hubris that thinks the language already contains all of the datastructures it needs.
- kyledj 11y agoThis isn't true. You can write a type safe data structure. It is simply for one type; you can't share it. That inability to share is the part that generics fixes, but saying you can't write type safe structures is inaccurate.