Iddo
Iddo
Nov 7 · 1 min read

This article is redundant, moreover it is misleading.

First of all the title is a clickbate as all the examples don't discuss loops, as opposed to the article title.

Second, the "values are being saved" argument is incorrect in multiple levels, the extra values being saved are never used later in the code and would be elimenated in the processes of compilation. Moreover in the case of the returns value and the normal variable, the normal variable is stack based and will be discarded upon return, in this case immediatly (if not eliminated in the course of the compilation), the return value will be saved in a register so will not take any memory.

The differrnce I++ and ++I should be known and understood by any developer, and used according to the developer intentions and not according to stupid rule of thumb

    Iddo

    Written by

    Iddo