Smalltalk Council Smalltalk News Beginners Guide to Smalltalk Smalltalk in Use ... Smalltalk Projects articles Subsystem Exception Handling in Smalltalk by Richard A. Demers Abstract Smalltalk exception handling is an elaborate facility you can use, or not use, depending on the needs of your programs. But what is the best way to use it? Smalltalk programmers usually just ignore exception handling, but there is a context in which it is valuable, namely in support of subsystems. Introduction Smalltalk exception handling is an elaborate facility you can use, or not use, depending on the needs of your programs. But what is the best way to use it? This is a problem because exception handling was initially defined for large procedural programs (thousands of lines of code), but now exists in the context of typically small methods (usually less than 7 lines of code). Smalltalk programmers usually just ignore exception handling, but there is a context in which it again becomes a valuable programming facility, namely in support of subsystems. Exception handling has long been a feature of programming languages. For example, consider the On-conditions of PL/I, designed in the mid-60's. Their value in handling simple zero-divide and end-of-file conditions was obvious, but more complex conditions and environments demanded more elaborate facilities. Since 1975, the exception handling facilities of programming languages have been largely based on the comprehensive work of John B. Goodenough | |
|