Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64628 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25259 invoked from network); 7 Jan 2013 06:54:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jan 2013 06:54:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.171 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.220.171 mail-vc0-f171.google.com Received: from [209.85.220.171] ([209.85.220.171:51147] helo=mail-vc0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EE/76-12349-F317AE05 for ; Mon, 07 Jan 2013 01:54:56 -0500 Received: by mail-vc0-f171.google.com with SMTP id n11so19294936vch.30 for ; Sun, 06 Jan 2013 22:54:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=hvzwVOp5LrHXEffTZA7f1ZHgX9J8duP+TPc+VvYLDv0=; b=lu3fLrQTz60umhvdt4viVRHMl4j9jz21KPUsK3EXShiLwWNUAsJEQJbPf9whT2PzgC TrRrtMPGl86BLNyTSbRnIhBav0SQreZlFt2uKWJ7Da+oAkjQf9M/WVPVvoSSNEnrx8OS BpqNa+bBCTOfCDq3nDQGo5duwfScXYp6Yq4om6lS7O6ZCQKTAatfSmZih2P+Ko0iDRez ADi+ly0UryLpv5roKdL8yXYU4PoqxYYP06VKy36E2qCFTdiApRJ6L3DJXWyLJ3GkXjvJ BizNHIUlKfYler5DAX7JV2qecYCZGTJBA71sfonLNmKq0GlnWAiqC0Pka24vszDk7FpY TrPg== Received: by 10.52.176.6 with SMTP id ce6mr71593164vdc.57.1357541692813; Sun, 06 Jan 2013 22:54:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.118.52 with HTTP; Sun, 6 Jan 2013 22:54:32 -0800 (PST) In-Reply-To: References: <45FD2112-5469-48A2-8941-92415EC711E1@strojny.net> Date: Mon, 7 Jan 2013 07:54:32 +0100 Message-ID: To: Yahav Gindi Bar Cc: Sebastian Krebs , PHP internals list Content-Type: multipart/alternative; boundary=bcaec51a80ca5e337304d2ad4ee0 Subject: Re: [PHP-DEV] [RFC] Reflection annotations reader From: ocramius@gmail.com (Marco Pivetta) --bcaec51a80ca5e337304d2ad4ee0 Content-Type: text/plain; charset=UTF-8 > So > @var String > @param2/param2("bar") > Will be array('var' => 'String', 'param2/param2' => '("bar")' ); > > Let's make this clear immediately: an associative array as output is not useful. That would make it impossible to nest annotations. For example, something like following wouldn't work if the output is just arrays: @MyApp\Acl({ "allow"=@MyApp\Acl\Allow({"john"="read", "joe"="write"}), "deny"=@OtherApp\Acl\Deny(default="*", log=true) }) Maybe a silly example, but nested annotations are not that rare :) Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --bcaec51a80ca5e337304d2ad4ee0--