Tom HawtinThomas Hawtin's WeblogTypesDefinePieces- January 9, 2007 Neal Gafter has a weblog entry on how Smalltalk MethodNamesInPieces could be used to allow closures to be used in expression of complicated flow control. (Read that first.) The obvious inner class approach is to add method for each block. However, this does not scale too well. How, for instance, are we going to remember what order the methods should be in If they are in an odd order, there could be surprises. We can do something with the Lee Lea Bloch blocks (assuming type arguments are...http://www.jroller.com/tackline/entry/typesdefinepieces |