Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49596 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9945 invoked from network); 10 Sep 2010 23:54:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Sep 2010 23:54:20 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.183 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.183 smtp183.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.183] ([67.192.241.183:45044] helo=smtp183.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/91-17717-A25CA8C4 for ; Fri, 10 Sep 2010 19:54:19 -0400 Received: from relay18.relay.dfw.mlsrvr.com (localhost [127.0.0.1]) by relay18.relay.dfw.mlsrvr.com (SMTP Server) with ESMTP id B2E5A16F2742 for ; Fri, 10 Sep 2010 19:54:15 -0400 (EDT) Received: by relay18.relay.dfw.mlsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 9132A16F2036 for ; Fri, 10 Sep 2010 19:54:15 -0400 (EDT) Message-ID: <4C8AC526.7000505@sugarcrm.com> Date: Fri, 10 Sep 2010 16:54:14 -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: PHP Internals References: <4C873C0F.1010200@zend.com> <4C879613.7090709@zend.com> <4C887D2B.2000605@zend.com> In-Reply-To: <4C887D2B.2000605@zend.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! > [Validation(Email(checkMX=>true))] looks better. Even here it's not clear what is happening. What is "Validation", what is "Email", what is "checkMX" (are they all classes? or only some of them?), what is happening to them (are these classes being instantiated? when? what is passed as parameters? What is the scope of that? etc). Why can we have now two ways to instantiate classes, complete with mix of []s and ()s, but having array syntax using [] is still too complex? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227