3 ms·
They were not necessary but useful in some contexts. What you are noticing is people not overusing them (which was a major concern). The only time I have used
by anxiously 4y ago
They were not necessary but useful in some contexts. What you are noticing is people not overusing them (which was a major concern).
The only time I have used them in the last year was building a generic LRU memory cache and it worked wonderfully.
- tgv 4y agoI feel the same. I'm slow on the uptake, because I didn't want to do any unnecessary rewrites and run the risk that there were bugs in there. Now I'm writing a new module, and it'll be less noisy to type the end-value it stores as a generic, as it avoids needless type casting and checking from interface{}.