Re: Named arguments revisited
| From: | Sebastian Kugler | Date: | Thu, 01 Dec 2005 19:16:40 +0000 |
| Subject: | Re: Named arguments revisited | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-20975@lists.php.net to get a copy of this message | ||
On 12/1/05, Jared White <jared@intuitivefuture.com> wrote:
> I still say its main selling point is
> that the calling code is its own API documentation.
why don't you just write something like
cycle(/* name: */ "myCycle", /* values: */ "#eeeeee;#d0d0d0", /*
print: */ false,
/* reset: */ true, /* delimiter: */ ";");
It's just as self-explanatory and you don't have to change the
language for it :-)
--Sebastian