Re[2]: [PHP-DEV] consistent way to handle structs
| From: | Daniel Lorch | Date: | Sat, 12 Jan 2002 02:48:35 +0000 |
| Subject: | Re[2]: [PHP-DEV] consistent way to handle structs | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-76727@lists.php.net to get a copy of this message | ||
Hi,
> There are two ways I can think of which would be sufficient solutions. The
> first is the one you mention and the second is ADA style ability to
> mention which argument is supposed to go to which parameter, e.g., foo(2
=>> two, 3 => three, 4 => four). [..]
why not allow a construct like:
function moo($now = time()) {
[..]
}
would be cool :) but doesn't make sense at all from the syntax point
of view (otherwise you could execute any piece of code just in the
header).
Kind Regards,
Daniel Lorch
--
@echo "Hello, World";