News for hackers. Stuff that matters.
Re:Functional Programming in C++ by pjmlp on Friday April 27, 2012 @02:43AM (#3897889)
Thanks to lambdas in C++11, coupled with STL algorithms, there are a lot of possibilities to do functional programming in modern C++.

One just has to take care to minimize mutability, as Carmack wrote on his blog entry.

Re:Functional Programming in C++ by cageface on Friday April 27, 2012 @09:19AM (#3898867)
I wish the lamba stuff would finally land in Xcode. I think of all the features in C++11 that's going to change the way I write C++ code the most.
Re:Functional Programming in C++ by pjmlp on Friday April 27, 2012 @12:10PM (#3899713)
I am not a Mac OS X guy, but wouldn't installing a more up to date gcc or clang, do the trick?
Re:Functional Programming in C++ by cageface on Friday April 27, 2012 @12:29PM (#3899816)
Unfortunately not. The clang that ships with Xcode is pretty tightly integrated into the IDE. I suppose it might work from the command line but I don't want to give up the IDE features.
Re:Functional Programming in C++ by kruhft on Friday April 27, 2012 @09:30PM (#3901736)
I thought c++11's lambda's would be great until I tried to pass one into std::transform.