4 ms·
The article is not about the functional C++ you mention. It is about using pure functions (functions that do not modify global context).
by empiricus 11y ago
The article is not about the functional C++ you mention. It is about using pure functions (functions that do not modify global context).
- overpaidgoogler 11y agoI get that. But the two ideas are very closely related. See also my final sentence.
- phloxicon 11y agoI'm really hopeful that Concepts will dramatically reduce the amount of code needed for std::transform. Imagine no begin() or end(). It would suddenly become less verbose than the classic for loop.
- pcwalton 11y agoThat problem is due to the STL not being built around iterators/ranges. I don't see how concepts enter into it (though contra Andrei Alexandrescu, I'm still a big believer in concepts).