3 ms·
For me, the lack of lamba functions meant I was less likely to use many of the algorithms from the standard library. In general, you want to provide a functor t
by scott_s 14y ago
For me, the lack of lamba functions meant I was less likely to use many of the algorithms from the standard library. In general, you want to provide a functor to such functions, and it doesn't make sense to define a class, overload operator(), and get the member variables and instantiations to line up when you could just write a for loop. With lambdas, the compiler will do that boiler plate for me.
(Yes, I say "will" - I'm not yet working on something that lets me use C++11 features. Sigh.)
- pjmlp 14y agoThis is what a like about C++11, it feels a safer language and lets me do lots of functional style programming. Sadly I am stuck in JVM/.NET on the day job.