Re: Declaration of Bar::__construct() must be compatible
| From: | Patrick Schnorbus | Date: | Fri, 27 Feb 2004 10:55:04 +0000 |
| Subject: | Re: Declaration of Bar::__construct() must be compatible | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-8208@lists.php.net to get a copy of this message | ||
On Friday 27 February 2004 11:12, Ferdinand Beyer wrote:
> On 27 Feb 2004 at 10:58, Patrick Schnorbus wrote:
> > Mhm. Does a signature make sense if the engine ignores it
>
> anyway?
>
> > For better readability one can use phpdoc/doxygen like comment
>
> blocks.
>
> That's right. But I don't see a reason why we should disallow to use a
> signature in an interface declaration even if it is ignored.
Well, since signature checks a PHP5 feature, i don't see a way to drop them.
With PHP5, PHP becomes much less loose (e.g. class type hints). If we allow
"dummy" signatures now, we will have the same problem again in the future. We
have to decide _now_ where we want to go (well, i think we have already
decided). Perl currently drops some legacy, too - perhaps the time is not
that bad to do this as well...
> --
> Ferdinand Beyer
> <fb@fbeyer.com>