3 ms·
I just checked, and MISRA 2012 seems to allow goto again under certain preconditions (you have to have a label declared in the same function and it has to be in
by carlmr 8y ago
I just checked, and MISRA 2012 seems to allow goto again under certain preconditions (you have to have a label declared in the same function and it has to be in the same block). So actually you can do proper error handling again.
Still single return statement, which usually makes for more spaghetti.
- acprog42 8y agoYeah, seems like it actually allows my second example which is good! :)