note 108500 deleted from functions.arguments by danbrown

From: Date: Thu, 10 May 2012 16:53:05 +0000
Subject: note 108500 deleted from functions.arguments by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-187606@lists.php.net to get a copy of this message
Note Submitter: BobsForumReplies at yahoo dot com ---- Here, Here! Not enough can be said for consistent syntax across languages and for easy to understand syntax. PHP makes it much harder than need be to omit some, but not all, parameters in a function call (by the way, the world I grew up in called the values being passed "argument", not parameters - see http://en.wikipedia.org/wiki/Function_argument for an excellent definition of argument and parameter) As was said here, why not allow a caller to omit an argument by just coding the comma? function example(one, two, three, four, five) call it with only first and last arguments: example(oneValue, , , , fiveValue) If the language provides a way to set a default value for each argument or a way to detect that an argument has not been specified, all is copacetic and the world spins round easily, the birds sing, the bees buzz, and all is peaceful in Programming Land. Bob

« previous php.notes (#187606) next »