Compact Control Readability Style
This style makes it easy to skim the left edge of the code for control statements (whereas styles like 1TBS make statements such as "else" harder to see because they are after an end bracket on the same line). However it keeps the code more compact than styles like the Allman style, by putting opening brackets at the end of lines (as opposed to on their own lines).
// In JavaScript if (x == y) { doSomethingA; doSomethingB; } else { doSomethingC; doSomethingD; }Read more about this topic: Indent Style
Famous quotes containing the words compact, control and/or style:
“What compact mean you to have with us?
Will you be pricked in number of our friends,
Or shall we on, and not depend on you?”
—William Shakespeare (15641616)
“In Vietnam, some of us lost control of our lives. I want my life back. I almost feel like Ive been missing in action for twenty-two years.”
—Wanda Sparks, U.S. nurse. As quoted in the New York Times Magazine, p. 72 (November 7, 1993)
“We think it is the richest prose style we know of.”
—Henry David Thoreau (18171862)