Re:Functional Programming in C++ (2013)
by empiricus on Saturday July 25, 2015 @01:46PM
(#9948325)
The article is not about the functional C++ you mention. It is about using pure functions (functions that do not modify global context).
[ Parent
| on HN ]
Re:Functional Programming in C++ (2013)
by overpaidgoogler on Saturday July 25, 2015 @01:48PM
(#9948327)
I get that. But the two ideas are very closely related. See also my final sentence.
I'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.
That 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).