One of the critiques that's often levelled at refactoring support in Smalltalk is the "all or nothing" charge - i.e., that refactorings are just "across the system" renaming.
Today's Smalltalk Daily drops into the rewrite engine support to show you how to do complex refactorings that are limited to what you want to see refactored. Today, we look at simple transformations: changing things that look like this:
someValue isNil
ifTrue: [self doNilThing]
ifFalse: [self doNotNilThing].
To this:
someValue ifNil: [self doNilThing] ifNotNil: [self doNotNilThing].
Technorati Tags:
smalltalk, refactoring