> From: Cristian Diaconu [mailto:[EMAIL PROTECTED]] > Posted At: Thursday, May 02, 2002 11:18 PM > Subject: [OT] double-pass exception semantic - Why? > > Against 1. The cost of handling every exception is *in theory* twice the > cost it would have been if filters would not have existed. It is important > to emphasize the difference between theory and practice and I'll get > back to that in a second.
The point of exceptions is they are only supposed to happen in exceptional conditions. This means the speed of the exceptional case should not be important as long as the common case (non-exceptional) is fast. As far as I can tell, two-pass exception handling doesn't have adverse effects on the common case performance, so speed arguments are a red herring. Ken
