by acprog42 · 7y ago · 0 comments
True, but I've seen enough MISRA code bases plagued with the "Christmas tree" layout even if dynamic memory allocation isn't allowed. This was just a generic example most people can relate to.
Still single return statement, which usually makes for more spaghetti.