3 ms·
That’s probably the only amount of copying that might be okay. Anything more than that and you have n places of code living independently of each other, making
by kaba0 4y ago
That’s probably the only amount of copying that might be okay. Anything more than that and you have n places of code living independently of each other, making refactoring/bugfixing impossible.
- throwaway894345 4y agoYes, if the code is complex, this becomes tedious. But you'd be surprised how often this sort of thing suffices. It turns out not everything needs a dozen combinator methods. See also a linked list implementation: `type List struct { Next *List, Item int }`.