note 93419 deleted from functions.arguments by thiago

From: Date: Wed, 09 Sep 2009 13:09:36 +0000
Subject: note 93419 deleted from functions.arguments by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-160345@lists.php.net to get a copy of this message
Note Submitter: a_r_zala at yahoo dot com ---- @ herenvardoREMOVEatSTUFFgmailINdotCAPScom Although your trick is nice, but isn't it expensive to re-check what PHP is already doing internally? I mean if argument is expected for any function when not initialized, even PHP provides warning/error regarding "missing arguments". Moreover by Design pattern, arguments are initialized for specific functional purpose, but if they are initialized just because they must exist, then I think those validation lines are unnecessarily being executed because in 99% cases developer knows what arguments and values are to be passed to get function working. Also when API documentation of that function is used by some other developer, he/she would not be able to understand purpose of arguments or what values are being passed as default so that function can also be used without some arguments. What do you think?

« previous php.notes (#160345) next »