|
Posted by www.douglassdavis.com on 09/16/05 17:48
Colin McKinnon wrote:
> > Let's say an invalid string is passed to construct it. What is the
> > appropriate way to handle this? I know in Java I would probably throw
> > an exception, but I don't know how much people really use exceptions in
> > PHP right now. So, I don't want to depend on it.
> >
>
> This seems an odd thing to say.
Maybe if I explain, it will not seem so odd to you anymore. I am
creating a library for others to use, and many people do not use PHP5.
So, it's kind of a tradeoff as far as using new features vs. being
usable by every one.
Navigation:
[Reply to this message]
|