>>4
ENHANCED
#include <lolnoob>
int
main(
)
{
if(
1
)
{
; printf(
"All the way to schfifty-five.\n"
)
; }
else
{
; printf(
"It's perfect K&R, except there's no space between control structures and the following parenthesis.\n"
)
; printf(
"This is my Achilles heel.\n"
)
; }
}
This style brings several benefits to an
ENTERPRISE QUALITY project, among which are:
Scalable statement addition and by the use of canonicalized statement initializers as well as terminators (
;). Thus you can always know where a statement begins and where it ends.
Mandatory braces for readability, enforced by the prior rule.
Enhanced formal argument injection, as per mandatory line-separation of parameters (not shown here).
Visual hierarchy of braces. Opening braces are always more important than closing ones, thus they are on space further to the left.
In conclusion: the revised
/prog/ coding style brings benefits to
ENTERPRISE projects by leveraging the visual recognition competencies of the team members and enforcing itself by the means of industry-standard tooling.