Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93201 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86466 invoked from network); 11 May 2016 06:02:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 May 2016 06:02:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=pthreads@pthreads.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=pthreads@pthreads.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pthreads.org from 209.85.161.179 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 209.85.161.179 mail-yw0-f179.google.com Received: from [209.85.161.179] ([209.85.161.179:34752] helo=mail-yw0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CB/A4-64493-40BC2375 for ; Wed, 11 May 2016 02:02:45 -0400 Received: by mail-yw0-f179.google.com with SMTP id j74so33395234ywg.1 for ; Tue, 10 May 2016 23:02:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pthreads-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=Q+8CyjULux4unn5qwNTceJeTDIqHSnfhzJuwAaBOexI=; b=0xQpwh0/Sdem3B+/MkFZHE9Lh2hHKRfQK2Dbdd98cYP6NILaPkHO5CwAjXnfMNeUtQ nGAG4hXB153T1ah3RY9SlmPYfrHR6d9BRMBeTBD5/+mYKynh4ufIjAU/jxYpCQtTqqQi R9jvRPmDbnyz0rirYSZ4+1wFfx0SEQFTWw9S2eKRhaAMHYIXe6e3iFNiFeNGNA28QbL3 BNrUJqg3S6C08VxCP2Z9dvUQCam/3fb97X5m48uvyx56SFXW9M6UENDvGlB7Yc/OJZS1 4t7Y4f6IJ+Y/cBQ2Nt+xgh6aXwy9m/4BLigejJ3JC7uoUvwSWJhpUBjzg5fixPMz4qU+ CSoQ== 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:date :message-id:subject:from:to:cc; bh=Q+8CyjULux4unn5qwNTceJeTDIqHSnfhzJuwAaBOexI=; b=cQHG1P7yqVv1Ifch8ApnlYXuVYuWNE2EqlAArjmQc/l2dWeKT8nGc/72ghb06BcAAG PUE8ropm3ewWbghSh4U+TwkomK1qBYzVta8aGFsjK+s7afx9cr5n5tcnn05T2oaRvP0R Wh6yb+1uNmbckeSFJgLAnq601DAsufnUtxRhzOmg0IREygRzMYn564PSorW8Ohib2OLt jgpudxXKyNC5qP1HncMBfcrA4j1EW3BTunxvabX1pDF1D6j8r7lYxaVRRGPbT4gWkaWx C3vPlYulqf0gALvbwmukE8ReK6kr/DSK5waVpkI+5JPVRS0vmDhdkNH0lEOhwGps57RP A+ew== X-Gm-Message-State: AOPr4FX7ZjOKCTcGA+YHWfVW4U0QeL82Pm7ICz5fAkxbvQNsK6Sf4Dh83qsrp87UCyKvtl6qFyRl7l5o7jq0MQ== MIME-Version: 1.0 X-Received: by 10.37.209.132 with SMTP id i126mr574124ybg.79.1462946562275; Tue, 10 May 2016 23:02:42 -0700 (PDT) Received: by 10.129.109.67 with HTTP; Tue, 10 May 2016 23:02:42 -0700 (PDT) X-Originating-IP: [165.120.173.102] In-Reply-To: References: <8d5d1c42-832d-4406-6bb5-dbf3fc02c364@telia.com> Date: Wed, 11 May 2016 07:02:42 +0100 Message-ID: To: Dmitry Stogov Cc: =?UTF-8?Q?Bj=C3=B6rn_Larsson?= , PHP internals Content-Type: multipart/alternative; boundary=94eb2c06b32e2babf805328aca87 Subject: Re: [PHP-DEV] [RFC] [VOTE] PHP Attributes From: pthreads@pthreads.org (Joe Watkins) --94eb2c06b32e2babf805328aca87 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Morning Dmitry, > On the other hand simple string may be parsed into AST with just one additional call to ast\compile_string(). You're not really suggesting that I write my tools in user land, are you ? It's me, Joe :) I *only* want attributes as they were originally proposed, and I can't vote to reflect that. As discussed in private, what I want is attributes, as originally proposed, and a hookable compiler; Anything else is not good enough. Cheers Joe On Wed, May 11, 2016 at 6:26 AM, Dmitry Stogov wrote: > Hi Joe, > > The sense in native support for AST is questionable. > > > On one hand this allows syntax verification. > > > On the other hand simple string may be parsed into AST with just one > additional call to ast\compile_string(). > > > Thanks. Dmitry. > > > ------------------------------ > *From:* Joe Watkins > *Sent:* Wednesday, May 11, 2016 7:46:09 AM > *To:* Bj=C3=B6rn Larsson > *Cc:* Dmitry Stogov; PHP internals > *Subject:* Re: [PHP-DEV] [RFC] [VOTE] PHP Attributes > > Morning Dmitry, > > I'm not really happy with the voting options here. > > I would not vote in favour of a patch that does not include support > for AST, that's a completely different feature. > > As it is, I have to vote yes in favour of AST, but it may be counted > as a vote in favour of attributes without AST ... > > This doesn't seem right ... I don't want attributes without AST, and > there is no voting option to reflect that. > > Cheers > Joe > > On Tue, May 10, 2016 at 11:09 PM, Bj=C3=B6rn Larsson > wrote: > >> Den 2016-05-11 kl. 00:00, skrev Dmitry Stogov: >> >>> >>> >>> On 05/11/2016 12:29 AM, Bj=C3=B6rn Larsson wrote: >>> >>>> Den 2016-05-10 kl. 20:29, skrev Dmitry Stogov: >>>> >>>> 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 decid= ed to >>>>> live with doc-comments only. >>>>> >>>>> >>>>> Thanks. Dmitry. >>>>> >>>>> Thanks for the good work. Regarding naming, I googled >>>> "PHP attributes" vs "PHP annotations" and looking at the >>>> result, my view is that that Annotation is a better naming >>>> then Attributes. Any hope in changing it? >>>> >>> >>> The more I listen to arguments of adepts of existing PHP annotation >>> systems, the more I think, that "PHP attributes" is the right name for = this >>> proposal. >>> This feature is not just for PHP annotation systems. >>> >> >> Thats a fair point, so Annotation it's not. Still, when I hear PHP >> attributes I associate it with class / function attributes. Maybe >> just a question getting used to the naming. Hm, wonder if PHP >> directives could have been an option? >> >> Regards //Bj=C3=B6rn >> >> >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > --94eb2c06b32e2babf805328aca87--