3 ms·
I think it is a bad idea to apply that rule to all programming languages though. If you are doing Java, for example, and have a function inside of a class, and
by GhostVII 9y ago
I think it is a bad idea to apply that rule to all programming languages though. If you are doing Java, for example, and have a function inside of a class, and a loop in the function, putting a condition inside of the loop would violate the rule, and that is a pretty common thing to do.
- arghwhat 9y agoConsider it from a base level rather than indent 0, and it will work for Java. The kernel guideline doesn't mention this due to being C specific. C++ can exhibit similar issues.