News for hackers. Stuff that matters.
Re:C++14 lambda tutorial by jason_slack on Thursday August 28, 2014 @11:26AM (#8237655)
I've never been a good at Templates. After reading this it seems that a lot of Template uses can be replaced with the generic lambdas using auto as the types going in.

Am I wrong or misunderstanding? I'm not saying completely but I feel like when I have used Templates I can now use this.

Re:C++14 lambda tutorial by Iftheshoefits on Thursday August 28, 2014 @11:50AM (#8237814)
Templates are the C++ implementation of "generics". Their utility extends far beyond lambdas-as-callables. The entire STL library is built using the Template feature of C++. Templates are far more important than the ability to do "true" object-oriented programming using other features, in my opinion.

For a more concrete example that doesn't rely on the "authority" of an externally developed template library, consider that templates are also useful for static/compile-time polymorphism (see: Curiously Recurring Template Pattern).

Re:C++14 lambda tutorial by dllthomas on Thursday August 28, 2014 @11:35AM (#8237712)
My understanding is that auto can serve some of the role of templates, but that has no particular tie to lambdas that I can see.