Re: Re: PEAR's Error Handling and PHP5
| From: | Matthias Nothhaft | Date: | Sat, 24 Jun 2006 09:39:30 +0000 |
| Subject: | Re: Re: PEAR's Error Handling and PHP5 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-43094@lists.php.net to get a copy of this message | ||
Alexey Borzov wrote:
The only completely honest person in this thread is Lukas, who said "I don't want exceptions, because they'll force me to change my development habits a bit". So a real question is whether several people not wanting to change their development habits is a good enough reason for stalling the whole PEAR project.pear as the official php library? should never force a user to change his habits. Obviously there are still thousands of php 4 installations running in production. These developers are used to work without caring about exceptions. I suggest we should really think about a kind of proxy lukas suggested in this first post. This proxy should have an abstract interface, so people are able to use any error return concept they want to use. The use of this proxy should be the only thing developers are forced to in pear. Of course it will add some more microseconds to run time but then everybode will be happy with pear. The only question I see is what default error handler/concept should be used with this proxy. Here I am +1 for using an 'exception based driver'. So.. one more message for the next flamewars ;-) Regards, Matthias