Home Segments Index Top Previous Next

302: Mainline

The defect of many whileTrue: and whileFalse: expressions is that the details that govern the iteration appear in three places: the place where the counting variable is initialized, the place where it is tested, and the place where it is altered. Such distribution makes complex iteration difficult to understand.