Re: Re: [PEPr] Comment on XML::XML_XUL
| From: | Stefan Neufeind | Date: | Mon, 23 Feb 2004 08:46:32 +0000 |
| Subject: | Re: Re: [PEPr] Comment on XML::XML_XUL | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-25795@lists.php.net to get a copy of this message | ||
On 23 Feb 2004 at 9:21, Stephan Schmidt wrote:
> > getElementByName() should not return a pear error .. it's too fat
> > and slow.. for something like this.
> > - just use false... and === tests.
> Then I'd prefer a null value...
Yes, returning null might also be a good choice for "not found".
Agreed imho, when it comes to objects.
Regards,
Stefan