RE: [PHP-DEV] Design by Contract
| From: | François Laupretre | Date: | Thu, 05 Feb 2015 13:53:49 +0000 |
| Subject: | RE: [PHP-DEV] Design by Contract | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81927@lists.php.net to get a copy of this message | ||
De : Dmitry Stogov [mailto:dmitry@zend.com]
> Yeah, this may work.
> The only problem, that it looks not native and defines additional language for constraints.
> I don't talk it's wrong. Both approaches may make sense, but of course, we have to
> select one.
Yes, it makes phpdoc more tied to the engine but is it a problem ?
I think BC is essential here. If people need to write PHP7-specific code, we'll loose them.
And remember : we already have tons of code with documented argument/return types ready for DbC
checks.
François