Re:Copying data is wasteful, mutating data is dangerous
by twiceaday on Thursday January 09, 2020 @04:05PM
(#22005749)
If you can't find a good implementation for an interface perhaps the problem is the interface. Inline the function, refactor, then express the result via re-usable components. Ultimately it is a problem of code re-use vs performance. If you want divine insight it is probably to use lazy evaluation, so for the example in the article express normalize as a generator.
[ Parent
| on HN ]
There are no comments on this comment yet.