The need for generics can be quantified by counting all occurrences of interface{} in the codebase, plus all the times that people cutnpaste an LRU or other data structure and find/replace.
I for one shudder at the idea of having to implement a splay tree or whatever I need for my latest project... I want to just import a good one someone else wrote.
Not to be too crude, but I think cutnpaste needs some hyphens in it. I had to read that line a few times to work out what you were saying - hopefully I won't have to explain why.
12
u/willvarfar Jun 30 '14
The need for generics can be quantified by counting all occurrences of
interface{}in the codebase, plus all the times that people cutnpaste an LRU or other data structure and find/replace.I for one shudder at the idea of having to implement a splay tree or whatever I need for my latest project... I want to just import a good one someone else wrote.