Fun with Number readFrom: What should we do ?

Chris Muller afunkyobject at yahoo.com
Thu Apr 27 18:19:00 UTC 2006


> For me the bottom line of the 'exception thread' was exactly this: an 
> error or an exception is something which is unforeseeable. If you can 
> predict that it may happen or if it regularly happens it should get 
> handled directly.

 Not sure I'm reading you right but exception handling of foreseeable exceptions provides powerful stack-unwinding capabilities and generic handling that is extremely useful.  Under your argument you'd have to have checks at every level in your code, yuck.
 
 I think the Java camp agrees, they have partitioned their exceptions into "Runtime" (unforeseeable) and "Checked" (foreseeable).






More information about the Squeak-dev mailing list