3 ms·
> I dispute that these features improve productivity. With the exception of modules (whose purpose has always eluded me) all are available in Go (or could be tr
by pcwalton 10y ago
> I dispute that these features improve productivity. With the exception of modules (whose purpose has always eluded me) all are available in Go (or could be trivially implemented) at the expense of safety and/or performance.
OK. How do you implement array.map() in Golang?
- weberc2 10y agoProbably like this: https://gist.github.com/ParthDesai/5e0f1d4725a644f1e632 https://gist.github.com/ParthDesai/5e0f1d4725a644f1e632
- wtetzner 10y agoWow. That seems very complicated for an implementation of map(). It seems like this is a perfect example of how generics are a productivity feature.