2 ms·
Like c's 'libc', or C++ boost, or pythons 'requests', or... Lots of code reuse there that depends on generics.
by falcolas 12y ago
Like c's 'libc', or C++ boost, or pythons 'requests', or...
Lots of code reuse there that depends on generics.
- vardump 12y agoYes, libraries get used. That's their point. My point was, that very little of application code ever gets reused, although we somehow always think it will.
- falcolas 12y agoAnd most people are asking for generics to write libraries which don't rely on unblocking interfaces. Even in the process of writing a single program, there are a number of times where you reuse certain bits of logic, and having generics makes it easier to refactor those into a single function, instead of duplicate code with multiple types (or overly generic types).
- codygman 12y agoThat's why you write or update libraries before writing an application, so it can be reused and your application specific code is minimized as much as possible.