Re: Re: Callbacks
| From: | Hartmut Holzgraefe | Date: | Fri, 20 Jun 2003 09:27:03 +0000 |
| Subject: | Re: Re: Callbacks | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969354659@lists.php.net to get a copy of this message | ||
Sara Golemon wrote:
I say mixed to avoid confusing the user with protos like: somefunc(callback callback); Of course, if all uses of 'callback' as a parameter name were changed to something else (and no not 'function') then I'd be okay with the use of 'callback' as a type. 'userfunc' or 'handler' sound okay...well, somefunc(callback callback) is a not-so-clever naming indeed, but you could also have someone write somefunc(userfunc userfunc) or somefunc(handler handler) when i did originally introduce 'callback' i tried to change the actual parameter names from 'callback' to something more meaningfull but i'm not sure whether some of these cases slipped through back then ... -- Hartmut Holzgraefe <hartmut@php.net>