4 ms·
>even though there is a well-known way that will not make your code slower (at the cost of compile times). That's the point though. The Golang team was surely
by ramesh31 5y ago
>even though there is a well-known way that will not make your code slower (at the cost of compile times).
That's the point though. The Golang team was surely aware of both approaches, and chose what they did as a conscious design decision to prefer faster compile times. People love Go because of the iteration speed compared to C++. And these little things start to add up if you don't have a clear product vision about what your language is meant for.
- wtetzner 5y agoOf course, I understand that they made that decision. I was just replying to this: > of cause generics can make your code slower, what did people expect. It's not unreasonable that some people might have expected monomorphization.
- erik_seaberg 5y agoIn fact I sort of thought they had announced monomorphization, though I wasn’t following really carefully.