0%

ALL meanings of kernel style

K k
  • abbreviation Technical meaning of KERNEL STYLE K&R style 3
  • noun Definition of kernel style in Technology (programming)   An ugly, obsolete, deprecated source code indent style that looks like this: if (cond) { } The basic indent is eight spaces (or one tab) per level; less commonly four. It is named after Kernighan & Ritchie because the examples in K&R are formatted this way. It is also called "kernel style" (because the Unix kernel was written in it) or Egyptian brackets. This style was popular when programmers worked on small displays, or when printing code on paper, becuase it saves vertical space. It should be avoided because the opening brace is easy to miss at the end of a long condition in an "if" or "while" statement and it makes it hard to pair up braces. 1
Was this page helpful?
Yes No
Thank you for your feedback! Tell your friends about this page
Tell us why?