Re: Proposal to remove void from protos
| From: | Etienne Kneuss | Date: | Tue, 21 Nov 2006 13:53:18 +0000 |
| Subject: | Re: Proposal to remove void from protos | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969374439@lists.php.net to get a copy of this message | ||
Jakub Vrana wrote:
Hello! Would you agree with removal of the word "void" in methodsynpsis both from return type and parameters list? I propose to change the return type to "null" which it really is and remove it completely from parameters list as it is the way to declare that function doesn't accept any parameters in user-defined functions. New synopsis would be: null debug_print_backtrace() instead of: void debug_print_backtrace(void) Jakub Vrana I've one problem with this proposal: there is some constructs that don't return anything, like echo.void *echo* ( string arg1 [, string ...] ) This proto makes sense, having null instead would induce that echo returns something. -- Etienne Kneuss http://www.colder.ch colder@php.net Men never do evil so completely and cheerfully as when they do it from a religious conviction. -- Pascal