Re:Elements of Modern C++ Style
by pyrtsa on Sunday October 30, 2011 @09:00AM
(#3174258)
I think the lambdas are the more useful the more complicated the function is. Simple asynchronous tasks might be one such example. This one, however, still is a pretty common use case, so introducing a function object type for it wouldn't hurt readability. Something like:
Verbose? Admittedly. Except maybe for the point of use, i.e. the last line. Which, I think, helps a lot anyway.
[ Parent
| on HN ]
There are no comments on this comment yet.