Re:Avoid Else, Return Early (2013)
by nitrogen on Monday March 26, 2018 @01:10PM
(#16680510)
I think the Linux kernel style is similar. That was the first coding standard I somewhat adopted, but naturally have adapted to many others on different teams over time.
[ Parent
| on HN ]
Re:Avoid Else, Return Early (2013)
by erik_seaberg on Monday March 26, 2018 @02:03PM
(#16681011)
I think this style dates back to K&R C where you (maybe) declared argument types after the parens.
int max(a, b)
double a, b;
{
return a > b ? a : b;
}