#112 minimize conditional blocks

open
nobody
None
5
2012-10-10
2002-11-07
Lars Kühne
No

if (x) {
doSomeStuff();
doCommonStuff();
} else {
doOtherStuff();
doCommonStuff();
}

Obviously the common stuff should be moved out of the
if/else blocks and only appear once. Similar style
problems can occor if the common code is at the
beginning of the if/else blocks or at certain points in
switch statements.

The main part of that check would probably be to
implement DetailsAST.equals() in a fast way.

Discussion