Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92618 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30342 invoked from network); 21 Apr 2016 23:02:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Apr 2016 23:02:29 -0000 Authentication-Results: pb1.pair.com header.from=derokorian@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=derokorian@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.51 as permitted sender) X-PHP-List-Original-Sender: derokorian@gmail.com X-Host-Fingerprint: 209.85.218.51 mail-oi0-f51.google.com Received: from [209.85.218.51] ([209.85.218.51:34498] helo=mail-oi0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 36/F9-14036-50C59175 for ; Thu, 21 Apr 2016 19:02:29 -0400 Received: by mail-oi0-f51.google.com with SMTP id k142so102063801oib.1 for ; Thu, 21 Apr 2016 16:02:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=zSbOzrXp8KpKPqZHcXI7ehjBWxDk4ZHDn08zF9zPt7M=; b=nxXd+V4GwoYd1mkimHArwB+b7+38a6w26BjPKygTVqtdwGAErzSbbyRk4aW5Z6m1sn jqSvel4pHxzttbzc8W/bdus2I8MTJgOtKhI0rA92Vkbjb32ok6dXmwT6Ua53XUZvqxWm DqydT1GkviQseoYZXPlG3WLkDzGhibwqeB+vJlJy31Z68ebvKTH7fFK0tzSL1AzYRoWE TZGMmjfgzosSmz6d56n2i1b14p+g4DL3oGcy4D4Sj5v+2jzZCZk9n51fFHNic4sKrYSt J1v4XYrn9xx3E4KiDp58CQtI2oOzIP50SUoXELdV8AyZnUozxMqH3QcHkLkfDCgnSwgs DgBw== 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=zSbOzrXp8KpKPqZHcXI7ehjBWxDk4ZHDn08zF9zPt7M=; b=mYtnCmZa00sie/ivT1sb9WEbB+gjkWDsyuSgdEeNjyk9z0q/vvQVWuf+hLKibLDLT0 SzFjl92jGqRbyDaO8i4wXW3aLIn/tFdePP2+H+/vy43evobmTl2Kmy8a0KZ1bNkZMphY LJxFWofFGKJ35sdVlyRT4smuIG8+3r/eEZyjeNht62ZTQgSUv8EkVj5Vch4T6prpPsYT c11umR3kxdqhfZx8qeCzd1f3AcLO/1e4rfFHP0jUJNyCWSZ88i9z54wiLIIvtknUnq4X LnAr+Fpt+IFrgLCIhRbtqHuYSdExficPamxqGcCfZEhm0Dvqx/yYO2QegwQK7oGU4Hnq Imhw== X-Gm-Message-State: AOPr4FWsKbLPzKYKf91uTeTNcPhcTRRYOJazIWG7rLCjqt+SL/dFzJ2MeEsUoZHNg62c2G5zfoIA55WXKF0Ulg== MIME-Version: 1.0 X-Received: by 10.202.76.215 with SMTP id z206mr7069761oia.18.1461279746653; Thu, 21 Apr 2016 16:02:26 -0700 (PDT) Received: by 10.157.41.73 with HTTP; Thu, 21 Apr 2016 16:02:26 -0700 (PDT) In-Reply-To: <5719598E.4000006@zend.com> References: <5719598E.4000006@zend.com> Date: Thu, 21 Apr 2016 17:02:26 -0600 Message-ID: To: Dmitry Stogov Cc: Benjamin Eberlei , PHP internals list Content-Type: multipart/alternative; boundary=001a1134e5da378fdc053106b490 Subject: Re: [PHP-DEV] [RFC] PHP Attributes From: derokorian@gmail.com (Ryan Pallas) --001a1134e5da378fdc053106b490 Content-Type: text/plain; charset=UTF-8 On Thu, Apr 21, 2016 at 4:51 PM, Dmitry Stogov wrote: > > >> About expressions, isn't there an ambigoutiy? <> is a "plain" >> name, value based attribute. But it could also be an ast\node of a function >> call to "test(1)" >> > even in AST scalars are scalars. > so <> would return: ast\node "+" with two children int(1) and > int(2). > > I am wondering if they shouldn't get their own start/end signs to clear >> that up, <<> vs <>. >> > > no need for extra complication. > > Since the encapsulated meta-data is an AST, and as you say any valid php expression will be valid here, what about bit shifting? <> BAR)>> Are there concerns about finding the T_SR token, which is also the end annotation symbol? I've not done any work in the parser, so excuse me if that is an insanely stupid question :) Otherwise, I think this RFC looks great, and appreciate your work on this :) Ryan --001a1134e5da378fdc053106b490--