Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82021 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86115 invoked from network); 6 Feb 2015 07:46:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2015 07:46:45 -0000 Authentication-Results: pb1.pair.com header.from=ivan.enderlin@hoa-project.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ivan.enderlin@hoa-project.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hoa-project.net designates 212.85.154.38 as permitted sender) X-PHP-List-Original-Sender: ivan.enderlin@hoa-project.net X-Host-Fingerprint: 212.85.154.38 unknown Received: from [212.85.154.38] ([212.85.154.38:53351] helo=mail.hoa-project.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 92/08-45146-46174D45 for ; Fri, 06 Feb 2015 02:46:45 -0500 Received: from hywan.local (206.226.4.85.dynamic.wline.res.cust.swisscom.ch [85.4.226.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.hoa-project.net (Postfix) with ESMTPSA id EFD6620680 for ; Fri, 6 Feb 2015 08:46:40 +0100 (CET) Message-ID: <54D47160.7050206@hoa-project.net> Date: Fri, 06 Feb 2015 08:46:40 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: internals@lists.php.net References: <01d601d04146$6fbda4c0$4f38ee40$@tekwire.net> <020c01d0414b$2c3a1120$84ae3360$@tekwire.net> <022801d0415a$027e0620$077a1260$@tekwire.net> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Design by Contract From: ivan.enderlin@hoa-project.net ("Ivan Enderlin @ Hoa") On 06/02/15 05:00, Pierre Joye wrote: > On Thu, Feb 5, 2015 at 11:36 PM, Dmitry Stogov 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.