Archive for the ‘Lisp’ Category

Multiple Dispatch and the Visitor Pattern

Saturday, June 14th, 2008 Posted in Code Design, Design Patterns, Java, Lisp | No Comments »

Following from my yakking about the state machine pattern, I've run into situations since where I've had a class which must react differently to different inputs, and thought how, rather than write a huge switch statement, or huge else-if with ...