Re:The Evolution of C Programming Practices: A Study of Unix...
by vardump on Friday May 11, 2018 @02:49PM
(#17049877)
I guess it's a matter of taste, but I often (not always) prefer less return statements in a function with gotos to error handling/cleanup code. Especially in kernel mode drivers.
[ Parent
| on HN ]
Re:The Evolution of C Programming Practices: A Study of Unix...
by WalterBright on Friday May 11, 2018 @02:56PM
(#17049944)
Check the asm code generated by your compiler - it may optimize multiple returns into one.