note 93419 added to functions.arguments

From: Date: Wed, 09 Sep 2009 11:16:40 +0000
Subject: note 93419 added to functions.arguments
Groups: php.notes 
Request: Send a blank email to php-notes+get-160344@lists.php.net to get a copy of this message
@ 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? ---- Server IP: 64.71.164.2 Probable Submitter: 124.125.148.209 ---- Manual Page -- http://www.php.net/manual/en/functions.arguments.php Edit -- https://master.php.net/note/edit/93419 Del: integrated -- https://master.php.net/note/delete/93419/integrated Del: useless -- https://master.php.net/note/delete/93419/useless Del: bad code -- https://master.php.net/note/delete/93419/bad+code Del: spam -- https://master.php.net/note/delete/93419/spam Del: non-english -- https://master.php.net/note/delete/93419/non-english Del: in docs -- https://master.php.net/note/delete/93419/in+docs Del: other reasons-- https://master.php.net/note/delete/93419 Reject -- https://master.php.net/note/reject/93419 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#160344) next »