Re: Re: PEAR Coding Standards

From: Date: Tue, 04 May 2004 00:43:55 +0000
Subject: Re: Re: PEAR Coding Standards
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-28750@lists.php.net to get a copy of this message
> ------ GENERAL USAGE ------ > there are times when checking variables where although it is minutely > slower, it does aid readibility. > > if (@$options['dosomething'] == true) { > is significantly clearer than > if (isset($options['dosomething']) && ($options['dosomething'] == > true)) > { ..... > ---------------------------------- > @ is part of the language, and in some respects is just a short form of > catch/try/throw. I may be wrong here, but @ doesn't help you to get rid of Notices when you set error_reporting to E_ALL, am I right? If that is so, I think it is a bad idea to spare your issets and instead using @'s...

« previous php.pear.dev (#28750) next »