RFC on SlidingSplitter Range

monarch_dodra via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Oct 3 12:57:27 PDT 2014


On Friday, 3 October 2014 at 19:46:10 UTC, Nordlöw wrote:
> Is prefix ++ preferred in D because of some specific reason? I 
> recall it, for some containers/iterators, gives smaller/faster 
> codegen in C++?

Be it C, C++ or D, "pre increment is maybe faster, and is never 
slower".

So as a rule of thumb, unless you should *specifically* require 
post increment, pre-increment is to be prefered, though in 95% of 
the cases, it results in the same code.


More information about the Digitalmars-d-learn mailing list