5 ms·
Why to spend time and efforts for adding useless generics in the first place? Maybe it would be better spending this time on performance optimizations, compile
by valyala 4y ago
Why to spend time and efforts for adding useless generics in the first place? Maybe it would be better spending this time on performance optimizations, compile times optimizations and binary size optimizations instead.
- oauea 4y agoBecause it's extremely useful to have adaptable data structures, without byzantine code generation?
- girvo 4y agoBecause they’re not useless.
- vlowther 4y agoBecause I would rather write one generic container library than n slightly different ones for each data type of deal with screwing around with casting interfaces?
- valyala 4y agoThis sounds good in theory. What about practice? Could you provide a few links to popular Go packages, which benefit from using generics?