4 ms·
I find it similar to the MISRA rules that says there should only be a single return in a function. We make an exception for this at work for checks at the star
by ChrisRR 4y ago
I find it similar to the MISRA rules that says there should only be a single return in a function.
We make an exception for this at work for checks at the start of a function (eg. NULL, ranges, etc.) and it tends to save an indentation or two. Then generally still follow the single return rule otherwise.