Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93279 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83025 invoked from network); 12 May 2016 14:54:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 May 2016 14:54:19 -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 74.125.82.47 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 74.125.82.47 mail-wm0-f47.google.com Received: from [74.125.82.47] ([74.125.82.47:38209] helo=mail-wm0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/70-28272-91994375 for ; Thu, 12 May 2016 10:54:17 -0400 Received: by mail-wm0-f47.google.com with SMTP id g17so140550690wme.1 for ; Thu, 12 May 2016 07:54:17 -0700 (PDT) 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; bh=mbC8yOaZpYeG1dAd8OIAE2BnzfAEVRWeIUQbARSrbSo=; b=Huy6uqVPWjaw96WZTRrr2wLIylRSJptDl53yTTLrS2eeEH7RBF8f/KB8o8WsEMWXJb CJgl/my5hCZv9mZdu86SrPY8ELbYvQpWmVUqkN7pe9BwrF18A2vPWRcmeyu3z8uJKCAE 8QOutdDxUcXPJUkLWEYSjT2tniRyzh8iDDbJIHEZd3aurZ4YZin1IyLwM3R4q0vpQlF/ I8IGT5ej+JE28hpxAgg3T5DTvs+uKX5dfraFeu89g2uxL3734C4u8zXbWFKyPpenQ7Af B4oXwOq2szAS7X2sJaIjR2m6XaDF/RHOErhcXsvE9EYb0105ZkoQiYbeagEH5xLCIGHg JMjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=mbC8yOaZpYeG1dAd8OIAE2BnzfAEVRWeIUQbARSrbSo=; b=EC6nJBbWnhdd7KgppI+/DHq25L214JSYFnAnhFLc8j67BN4umG0bZ2mjNK9GAsvyNj Wxr0QOTThayeLamdCng4vF+8CH9lgdliU1r+rROwXWqgbpLx8cxZYk6ETQEi0xd1exps ftYh3fj0ejArmft0okuH78eZD922SeWNY25eUEnZ92bIiUJdXL7jMFYzx6v1pTU+Q+38 WFOs1+4VWZY/s9StMlU1LpRkvXewMwD4WAKWPxmHZ5q/wDKi9iG1n8mAkfQ/kJHBx57Z JYObVSmZOxG8kzWPEFeTUSnQxuAves8UTe1LpEFHknG4XmLo73MKMyeOl073zlQLQLNe xlLg== X-Gm-Message-State: AOPr4FUpFCAvPthsBUUKEQI1bFWum+cWqgm54mRBl4OHPV0841R14GUKFRAzo+OwOWACmLcSjMpMqByRH23shw== X-Received: by 10.28.45.129 with SMTP id t123mr6775270wmt.71.1463064854979; Thu, 12 May 2016 07:54:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.170.167 with HTTP; Thu, 12 May 2016 07:53:55 -0700 (PDT) In-Reply-To: References: Date: Thu, 12 May 2016 16:53:55 +0200 Message-ID: To: Benjamin Eberlei Cc: Dmitry Stogov , internals Content-Type: multipart/alternative; boundary=001a11425326f6ebad0532a6546a Subject: Re: [PHP-DEV] [RFC] [VOTE] PHP Attributes From: ocramius@gmail.com (Marco Pivetta) --001a11425326f6ebad0532a6546a Content-Type: text/plain; charset=UTF-8 On 12 May 2016 at 16:29, Benjamin Eberlei wrote: > On Tue, May 10, 2016 at 8:29 PM, Dmitry Stogov wrote: > > > Hi internals, > > > > > > I've started voting on "PHP Attributes" RFC. > > > > > > https://wiki.php.net/rfc/attributes > > > > > > In my opinion, "PHP Attributes" might be a smart tool for PHP extension, > > but it's not going to be the end of the world, if we decided to live with > > doc-comments only. > > > > > > Thanks. Dmitry. > > > > I voted -1 > > Reasons: from a Doctrine Annotations maintainer perspective, either getting > a list (without keys) of strings back or ast\nodes are not enough or way > too advanced for our use-case. The middle ground is missing where a > (Name borrowed from the RFC) can be an arbitrarily deep > nested array, that means getAttributes() does should not only return > "string" or ast\node as result for each attribute, to there should be a way > to get arrays back. > > Example: > > https://gist.github.com/beberlei/18db9f7d5f6157b817348a58fa2aee25 > > greetings > Benjamin > Urgh, that is indeed quirky, and makes it unusable. Is that an implementation or a spec issue? I know PHP 5.6+ allows array constants, but I am not aware of whether that is in the specification. Indeed, show-stopper here. I'll have to vote "-1" for now, and wait for a version that either explicitly contains any constant expression or just supports arrays as constants. I'll also need to compile the branch and try it out myself before voting further: my bad for being hasty. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --001a11425326f6ebad0532a6546a--