
21 Jun
2019
21 Jun
'19
7:19 a.m.
On 6/21/19 11:49 AM, Ilias Stamatis wrote:
<snip/>
I totally agree with you, it's more readable for me too.
Just so far I haven't encountered in the code. Also e.g. C99 allows variables to be declared inside a loop ie
for (size_t i = 0; ...
...but I haven't seen that being used anywhere either.
Yeah, we have a mixture of c89 and c99. Honestly, I don't know why. And also, I can see us using c99 style loops in some cases, i.e. small, self contained loop that does not need a rollback if a function called from within its body fails. But then again, inconsistency hurts code readability much more than suboptimal consistency. Michal