POV-Ray : Newsgroups : povray.off-topic : Standard libraries : Re: Standard libraries Server Time
9 Oct 2024 17:49:26 EDT (-0400)
  Re: Standard libraries  
From: Warp
Date: 7 Mar 2009 06:27:35
Message: <49b25a27@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.