by jackdoe · 1y ago · 0 comments
honestly just skimming through MIRSA C 2004
> Rule 17.4 (required): Array indexing shall be the only allowed form of pointer arithmetic. Array indexing is the only acceptable form of pointer arithmetic, because it is clearer and hence less error prone than pointer manipulation.
I don't think compliance with such rules really solve things, and in some cases just introduce complexity, e.g there is also rule for never using recursion: Rule 16.2 (required): Functions shall not call themselves, either directly or indirectly
but also, it is easier to judge if a book is good than to write a good book
> Yes. Transparency is the only foundation of trust.
teenagers and corporations disagree :)
Corporation does not care about life per se, it looks at impact on profit.
Corporation has option to sue offender into oblivion (by thoroughly writing contracts)
I agree that the call stack limit is much more important in environments with tight memory but the rule is about the stack limit, not memory in general.
Edit: for 2. I obviously mean recursion as the class of algorithms, not as the property of the functions used to implement it.