Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49728 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49153 invoked from network); 16 Sep 2010 19:27:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Sep 2010 19:27:24 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.123 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.123 smtp123.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.123] ([67.192.241.123:39972] helo=smtp123.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/ED-15036-B9F629C4 for ; Thu, 16 Sep 2010 15:27:23 -0400 Received: from relay12.relay.dfw.mlsrvr.com (localhost [127.0.0.1]) by relay12.relay.dfw.mlsrvr.com (SMTP Server) with ESMTP id CF6C82080806; Thu, 16 Sep 2010 15:27:20 -0400 (EDT) Received: by relay12.relay.dfw.mlsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 2345720807DC; Thu, 16 Sep 2010 15:27:19 -0400 (EDT) Message-ID: <4C926F97.8000906@sugarcrm.com> Date: Thu, 16 Sep 2010 12:27:19 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.9) Gecko/20100825 Thunderbird/3.1.3 MIME-Version: 1.0 To: Paul CC: Guilherme Blanco , Gustavo Lopes , Derick Rethans , "internals@lists.php.net" References: <4C873C0F.1010200@zend.com> <4C879613.7090709@zend.com> <4C887D2B.2000605@zend.com> <4C8AC526.7000505@sugarcrm.com> <4C8B6168.30504@mohiva.com> <4C8BC81E.8000605@sugarcrm.com> <7.0.1.0.2.20100913145703.0d226d90@zend.com> <4C926574.8030805@sugarcrm.com> <4C926BC8.8060206@gmail.com> In-Reply-To: <4C926BC8.8060206@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: PHP Annotations RFC + Patch From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > Overloading comment syntax to modify application functionality is the > worst idea I've seen suggested on this list. This beats goto by miles. What you mean "suggested"? It's what happening right now in pretty much any widely used framework. > "Why's my stuff broke? That stack trace leads me through... a > docblock?!? Wait, that comment I updated wasn't really a comment, it That's why code annotations are bad idea. Metadata should not be code. And in Java, for example, annotations are interfaces. > just looked like one? Oh hell, that other comment I added got mistaken > for an annotation? WTF?" > > This is supposed to be *less* confusing for people? Nothing can un-confuse person that deliberately tries to be confused. You are fighting a strawman - nobody suggests having active code in comments. Metadata is not code - it's data. Backtraces can't lead to data. You can store data in a variety of formats - what is suggested (and already is widely used) is just yet another format to store/retrieve data. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227