I'm reading the Linux Kernel Coding Style, where Linus wrote something like this(Chapter 1 Indentation):Dont put multiple statements on a single line unless you have something to hide:if (condition) do_this;  do_something_everytime;......Outside of comments, documentation and except in Kconfig, spaces are never  used for indentation, and the above example is deliberately broken.What does he mean by something to hide? Is it a sarcasm? cuz I don't see any point of coding in such format, not to mention hide something.And another question, what doesthe above example is deliberately broken.mean? Does it meanthe above example is deliberately breaking this (no space) rule.Thanks : )
What does Linus mean here in Kernel Coding Style documentation?
linux;linux kernel
Such coding style makes it easy to misinterpret what the code is supposed to do. In the example, due indention and having another statement the same row, one might mistakenly think that do_something_everytime is in if block and executed only if condition is true. Instead the if block only contains do_this and do_something_everytime is always run.This kinds of malicious indention has caused bugs in software in past, for example a famous bug in Apple's TLS certificate verification affecting Safari and possibly other Apple software.The example is also breaking no space rule as explicitly stated by explanation.