← Back to context

Comment by jackdoe

2 days ago

> Bold! I wonder what leads to this sort of confidence.

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 :)

Reasons why:

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)

recursion on embedded devices is terrible… you have very little memory.

  • It's more about having an easily verifiable limit on the size of the call stack. You can still use recursion in algorithms with this rule. It just forces you to allocate a separate stack to manage it.