Re: exceptions considered harmful

2005-06-18 Thread Andrea Griffini
On Fri, 17 Jun 2005 20:00:39 -0400, Roy Smith <[EMAIL PROTECTED]> wrote: >This sounds like a very C++ view of the world. In Python, for example, >exceptions are much more light weight and perfectly routine. The problem with exceptions is coping with partial updatd state. Suppose you call a comp

Re: exceptions considered harmful

2005-06-18 Thread Steven D'Aprano
On Fri, 17 Jun 2005 20:00:39 -0400, Roy Smith wrote: > "H. S. Lahman" <[EMAIL PROTECTED]> wrote: >> > Never throw an exception. And if someone throws one at you, >> > catch it immediately and don't pass it on. >> >> IMO, this is generally fine advice. Languages provide exception >> hand

Re: exceptions considered harmful

2005-06-17 Thread Roy Smith
"H. S. Lahman" <[EMAIL PROTECTED]> wrote: > > Never throw an exception. And if someone throws one at you, > > catch it immediately and don't pass it on. > > IMO, this is generally fine advice. Languages provide exception > handlers so that applications have a chance to respond gracefully