3 ms·
Your interpretation is correct. He describes things that you shouldn't try to imitate in C++ (like appending an element to a vector by creating a copy and then
by Jtsummers 6y ago
Your interpretation is correct. He describes things that you shouldn't try to imitate in C++ (like appending an element to a vector by creating a copy and then appending to that). But also describes other situations where having a pure (or near-pure) functional version can be greatly beneficial. Like a method on vectors (math sense) that return a normalized version, or adding string methods which return a copy rather than mutate in place (think: upcased versus upcase).