4 ms·
Generics would make go code safer, less reliant on complicated tricks to circumvent language limitations and the need for reflection and ultimately make program
by camus2 10y ago
Generics would make go code safer, less reliant on complicated tricks to circumvent language limitations and the need for reflection and ultimately make programs less brittle since it would reduce the amount of code needed for a task in general. The only valid argument against them is compilation speed but it hasn't been tried in real.
- stymaar 10y agoEven the compilation speed is not a problem related to generics themself, it's a problem related to monomorphisation. If you keep dynamic dispatch, you pay almost no compilation penalty.