[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.2 demi-nesting-penalty option

This is the “score multiplier for nested expressions” option. By default, this value is halfway between 1.0 and the nesting penalty (specifically, the square root of the nesting penalty). It refers to a parenthesized sub-expression. e.g.

 
((a > b) && (c > d))

contains two parenthesized sub-expressions. This would count 3.5 points. On the other hand, this:

 
(a > b && c > d)

contains two relation operators and a logical operator at the same level. These nested counts will be multiplied together and yield 2.5 * 2.5, or 6.25. Don’t do that. It gets even worse if you have logical ands and ors at the same level.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated by Bruce Korb on May 15, 2011 using texi2html 1.82.