Re: [RFC][Discussion] Return Type Variance Checking
| From: | Levi Morrison | Date: | Fri, 28 Nov 2014 16:51:41 +0000 |
| Subject: | Re: [RFC][Discussion] Return Type Variance Checking | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-79282@lists.php.net to get a copy of this message | ||
> I prefer option (3) - invariant return types.
> Actually, return type compatibility check should follow all the rules for
> parameter type compatibility check (may be even reuse or share the code).
Realistically there isn't much code to share, especially since the two
structures are incompatible. That is, they are incompatible until
zend_string * is used in parameters (which I'm hopeful will happen).