News for hackers. Stuff that matters.
Re:Functional programming in C++ by nmeofthestate on Monday September 26, 2016 @09:33AM (#12581649)
I completely disagree - C++ is a multi-paradigm language and the C++ standard is already chock full of non-OO stuff.

The example code in the article also makes use of objects such as std::string, sets etc.

Re:Functional programming in C++ by gpderetta on Monday September 26, 2016 @10:18AM (#12581975)
In fact the only part of the standard library that can be considered OO, iostream, is considered an overengineered disaster.

I actually happen to like iostream, for the reasons of it being standard and extendible; just don't expect any particular performance out of it.

Re:Functional programming in C++ by nepstein on Monday September 26, 2016 @09:52AM (#12581788)
I'm not sure I agree that STL that containers are explicitly not OO.

That said, I don't disagree that C++ can support functional programming. I would just argue there are languages better suited for this.

(edited for clarity)

Re:Functional programming in C++ by hellofunk on Monday September 26, 2016 @09:58AM (#12581828)
The author of the first STL has famously said that, even after all these decades, he has never written any C++ code that uses OO inheritance, because he hasn't found a use for it.

The STL is mainly a generic library, not an OO library.

Re:Functional programming in C++ by gpderetta on Monday September 26, 2016 @10:40AM (#12582187)
Yes, Stepanov is not exactly an OO fan. This interview with him, were he declared that "OO is an Hoax", is great:

http://www.stlport.org/resources/StepanovUSA.html