Moving the kernel to modern C
Moving the kernel to modern C
Posted Feb 25, 2022 9:39 UTC (Fri) by wtarreau (subscriber, #51152)In reply to: Moving the kernel to modern C by marcH
Parent article: Moving the kernel to modern C
> Combined declarations and initializations like every other programming language.
Please no! That's the most horrible thing I hate in modern C.
Normally when reviewing code and looking for a variable, you just need to glance at
the top of each upper level opening brace and nothing more. With those insane
declarations after statement, you work like in bash: you have to read *ALL* lines
above where you are, hoping you didn't miss the right one. This serves absolutely
no purpose, and only has for effect to complicate code reviews and ease introduction
of new bugs.
