Re: Mail_IMAP 2.0.0 alpha 1
| From: | Lukas Smith | Date: | Thu, 08 Jul 2004 13:29:06 +0000 |
| Subject: | Re: Mail_IMAP 2.0.0 alpha 1 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-31749@lists.php.net to get a copy of this message | ||
Hans Lellelid wrote:
Well, the challenge is that when designing a cohesive collection of packages they need to have common error handling. For the first time PHP now provides a solution for user error handling that is particularly suited to the n-layer development style that PEAR libraries facilitate. Exceptions could provide a great glue to make PEAR libraries a coherent interworking whole, a glue that was formerly provided by a kludgy (but certainly best for PHP4) solution: PEAR_Error.Exactly because there are different developers involved in those n-layers I am concerned about the implications of Exceptions.
In my world, PHP applications are becoming far more complex and multi-layered. I see this everywhere I look, with frameworks obtaining new levels of stability & quality. I see the introduction of Exception as tribute to this new demand for PHP. Indeed Exceptions are not particularly well suited for building flat, quick PHP scripts. They exist for complex OO architectures. PHP5 in general exists for complex OO "enterprise" applications.I can see myself using Exceptions inside my application logic much more than inside a general purpose libary I choose to use. regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07