|
|
Darren New <dne### [at] sanrrcom> wrote:
> Warp wrote:
> > std::for_each(someList, [&total](int x) { total += x });
> And, really, what's the advantage of this over a normal for loop?
Nothing. Since it's C++ code, it sucks.
In fact, C++'s for-loop also sucks. Everything in C++ sucks. Even if
it's a byte-by-byte identical feature as in some other, better language,
it still sucks because it's in C++.
--
- Warp
Post a reply to this message
|
|