RE: [PHP-DEV] Design by Contract
| From: | Pierre Joye | Date: | Thu, 05 Feb 2015 15:00:33 +0000 |
| Subject: | RE: [PHP-DEV] Design by Contract | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81934@lists.php.net to get a copy of this message | ||
On Feb 5, 2015 8:54 PM, "François Laupretre" <francois@tekwire.net> wrote:
>
> 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 ?
And here I have to jump in and say: don't.
And remind about one of the exact purposes of annotations.