Re: MySQL class. Thoughts?
| From: | Jay Moore | Date: | Wed, 21 Jan 2009 20:51:37 +0000 |
| Subject: | Re: MySQL class. Thoughts? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-286951@lists.php.net to get a copy of this message | ||
I know it's very OO-y to use exceptions, but I hate them. They're like setjmp/longjmp calls in C, and they're a really headache to deal with. If you don't use default or predone handlers, you have to put all kinds of try/catch blocks around everything. They make for non-linear execution, and I prefer my code to execute in a linear fashion. PaulMy thoughts exactly. What do I gain by using a try/catch that I lose by using if/else or similar? J