Re: Re: Signature compatibility: Number of arguments
| From: | Levi Morrison | Date: | Thu, 29 Aug 2013 15:57:12 +0000 |
| Subject: | Re: Re: Signature compatibility: Number of arguments | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68688@lists.php.net to get a copy of this message | ||
I think of the following definition:
function foo($bar = NULL)
To really be two definitions with method overloading:
> function foo()
function foo($bar)
Allowing an inheritor/implementor to choose to not implement the second
signature does not seem logical at all when you think of them this way. I'm
against this this proposal.