Re: Design by Contract

From: Date: Fri, 06 Feb 2015 07:46:40 +0000
Subject: Re: Design by Contract
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-82021@lists.php.net to get a copy of this message
On 06/02/15 05:00, Pierre Joye wrote:
On Thu, Feb 5, 2015 at 11:36 PM, Dmitry Stogov <dmitry@zend.com> wrote:
phpdoc is annotation as well, but to split it into specific attributes we have to write specialized parsers. Other languages support annotation or attributes that may be used more easily. http://docs.hhvm.com/manual/en/hack.attributes.php
Exactly, phpdoc is used as annotation (or comments with some similar syntax) but is definitively not aimed to be annotations. Exact. Annotations !== comments. Because PHP has no annotation system, we used to use comments for this purpose, but it's a workaround.


« previous php.internals (#82021) next »