News for hackers. Stuff that matters.
Re:New C++ features – lambdas by ska on Wednesday October 28, 2015 @11:03PM (#10468977)
I agree basically here, but not at all with your original. We're off on a tangent. But first class was a bit slopy of me.

Anyway, there is a long history of trying to adopt a functional style to c++ in a way that makes sense for a static, weakly type language without garbage collection. After all, this is basically what the STL was all about.

Undoubtably using the modern c++ lambda can make this style of code clearer and better structured.

One could argue, I suppose, that it's still a bad approach - but it's not any easy argument in general.

Requiring first class functions to always be named isn't such a great idea (not speaking of c++ here), but it is true anonymous functions can be abused.

Re:New C++ features – lambdas by xigency on Thursday October 29, 2015 @02:02PM (#10472997)
Totally fair points. I'm more of a programming language researcher, hence the interest in classification.

But yes, for production code it is totally the programmer's preference. I come from a background in game development. There are lots of times when game programmers won't trust new features or standard libraries. This is really a bad example of that, unless working with a compiler that doesn't support C++11 features, but it can be annoying when a lone programmer on a project starts using new features.