06-06-2009, 01:49 PM
|
#6 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
Quote:
Originally Posted by Salathe
There are any number of reasons why the author decided to use the error suppression operator. It is very quick and painless to write (just one extra character and all the noise goes away!), they may think that is the only way to keep the errors from popping up, they may not care about any tiny, tiny, tiny performance hit incurred when the line is called (perhaps only once or a few times per page-load for most uses), etc..
|
Well what happens if you need a bunch of these DomDocument instances and thus have to use the error-suppression operator again and again repeatedly, thus you might run into a performance hit. 
__________________
VillageIdiot can have my babbies ;d
|
|
|
|