Re: Proposal to remove void from protos
| From: | Derick Rethans | Date: | Tue, 21 Nov 2006 10:44:37 +0000 |
| Subject: | Re: Proposal to remove void from protos | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969374435@lists.php.net to get a copy of this message | ||
On Tue, 21 Nov 2006, Antony Dovgal wrote:
> On 11/21/2006 12:53 PM, 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)
>
> I suppose that it's still "void", even though the real return value is
> "NULL".
> "NULL" doesn't mean "don't expect it to return anything, the return
> value of
> this function is useless" as "void" does.
>
> So I'm -1 on this.
Me as well, -1.
regards,
Derick