4 ms·
Good generics can be really helpful here. Can't be specific without knowing the exact helper function but I find sitting down with a cuppa (away from the compu
by mhh__ 7y ago
Good generics can be really helpful here.
Can't be specific without knowing the exact helper function but I find sitting down with a cuppa (away from the computer) and planning an interface (If it's C++) that accepts (say) a policy class with a default and a callable object ("Functor") very helpful.
Sometimes it can't be done but it's better to have a bugfree building block (Macros don't count!) that can accept buggy user defined tasks than lots of repitition.
- morelisp 7y ago> Macros don't count! Well, C++ macros don't count.