Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64763 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54904 invoked from network); 9 Jan 2013 16:59:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jan 2013 16:59:01 -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.173 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.173 smtp173.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.173] ([67.192.241.173:52216] helo=smtp173.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/A0-02684-4D1ADE05 for ; Wed, 09 Jan 2013 11:59:01 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp7.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id D4C6E258214; Wed, 9 Jan 2013 11:58:56 -0500 (EST) X-Virus-Scanned: OK Received: by smtp7.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 654A9258332; Wed, 9 Jan 2013 11:58:46 -0500 (EST) Message-ID: <50EDA1C5.4040500@sugarcrm.com> Date: Wed, 09 Jan 2013 08:58:45 -0800 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Derick Rethans CC: Pierrick Charron , Rasmus Schultz , "internals@lists.php.net" References: <50EBDEEE.8070605@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Reflection annotations reader From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > @MyApp\Acl({ > "allow"=@MyApp\Acl\Allow({"john"="read", "joe"="write"}), > "deny"=@OtherApp\Acl\Deny(default="*", log=true) > }) I seriously hope it never comes to this in PHP. We're supposed to be simple language for doing cool stuff on the web, not a serialization format for ORM metadata. If we can not make it simple and comprehensible, we better not do it at all (at least on the language level). There are plenty of ways to store metadata, not everything should be in the language syntax. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227