4 ms·
> their answer to generics requires run-time type checking for every operation Go has no built in answer to generics. Trying to rebuild generics with other lan
by ungerik 15y ago
> their answer to generics requires run-time type checking for every operation
Go has no built in answer to generics. Trying to rebuild generics with other language features won't make it better.
- haberman 15y agoI must have misinterpreted the intent of this from "Go for C++ Programmers": > Because the conversion is dynamic, it may be used to implement generic programming similar to templates in C++. This is done by manipulating values of the minimal interface. I thought they were saying this was their answer to generic programming, but it appears this is not the case. In any case, it was just an example of my general feeling that the type system is more dynamic than I prefer for systems languages.