News for hackers. Stuff that matters.
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).
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.
Re:Functional Programming in C++ (2013) by phloxicon on Saturday July 25, 2015 @02:47PM (#9948552)
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.
Re:Functional Programming in C++ (2013) by pcwalton on Saturday July 25, 2015 @03:58PM (#9948784)
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).