Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93221 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24237 invoked from network); 11 May 2016 09:40:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 May 2016 09:40:22 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.52 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.52 mail-wm0-f52.google.com Received: from [74.125.82.52] ([74.125.82.52:36973] helo=mail-wm0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8C/E5-28272-50EF2375 for ; Wed, 11 May 2016 05:40:22 -0400 Received: by mail-wm0-f52.google.com with SMTP id a17so72019843wme.0 for ; Wed, 11 May 2016 02:40:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=24hFtf6U1wWhsxpsit2VCuMcWyziarrP0vvtKvatJDk=; b=fL0ImOtOI+4x+zs/unl7T4iiYFKsH7npphPmuFUE2bmB9LfLA6Z0kTusuwAmSK2cDt xlPUtFhl2wnI7gD8daaK/ZDPwj9ApxiOCFWTqewH39u9Ik+WQdA8XJBAgYGWY8zN+QfD yKKwFivQ0S1bgCD5Ys6uvyAu8aVBrjxQj6YMzlZcgJODMDxKG2LAaHXZZ9a+dvmlE2FT rR8sb3K6DBXJZHJsapdWesKnh4JRxRBo+0TCx1znarggMW9LDO43c1qPv90CgwZPVLcp mPGqjhxc8NdUFJ887YDVlifsujq1omztFCGkoCZp1X04/3rbBNPJ6p8rvR4T0pADxpr/ F7Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=24hFtf6U1wWhsxpsit2VCuMcWyziarrP0vvtKvatJDk=; b=BowhzllOTR8kfYWFuwqQlzVw3SoD1sZhyvcolyu3kXmVY6kaDJ7ykrHTu/A6KzF+Y8 HCrgTtUorvssWY1Tkb7Ez2PZ1KrjmwGDaKxQFcF1Ah+dpWG1r1agRgTzZiDWWrFeocFu eGcskeqnSoRbsClMG8ExnP0olWUpS6/kK+xMGtFxOz4iqU601Pte9StnndetucrQc27M dcg1eDrxjGTu60gVy4GX7bpjh+8kP7QSw+DBCFJu4JN2D1LpDb8dF3JzXcZQlmOnIzG8 wiUJoCzHmkwCVCMlNUTm6DbZy7yp/o7abbYSTA7BzPSkdH44qBGufsCWydeZLBWCci7f 6viQ== X-Gm-Message-State: AOPr4FVz4/VbxylIN+rODR4nSfp5NsYWr0RPjw73VgtjGE2SOjmIrxjNm7Xy+cD+CPxnxA== X-Received: by 10.28.227.138 with SMTP id a132mr21471988wmh.35.1462959619138; Wed, 11 May 2016 02:40:19 -0700 (PDT) Received: from [192.168.0.98] ([93.188.182.58]) by smtp.gmail.com with ESMTPSA id a75sm7520070wme.18.2016.05.11.02.40.18 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 11 May 2016 02:40:18 -0700 (PDT) To: internals@lists.php.net References: <8d5d1c42-832d-4406-6bb5-dbf3fc02c364@telia.com> Message-ID: <1cae12b7-e2b8-2202-2e91-effd548610ab@gmail.com> Date: Wed, 11 May 2016 10:37:53 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] [VOTE] PHP Attributes From: rowan.collins@gmail.com (Rowan Collins) On 11/05/2016 05:46, Joe Watkins wrote: > I would not vote in favour of a patch that does not include support for > AST, that's a completely different feature. Arguably, with the right choice of extension methods, an implementation requiring a single scalar could be extended to support arbitrary expressions later, since "scalar" is a subset of "expression". For instance, getAttributes() could provide a NULL value for any attribute with a non-scalar argument, and a separate getAttributesAST() could return an AST tree even if it consisted of a single constant. I'm still not convinced the freedom of AST is justified though, as opposed to a constant expression parsed according to standard PHP semantics (e.g. an associative array) or some specific syntax (effectively named parameters). I'd personally be against both options in the current RFC, because I think the language should be providing much more to make this useful. Regards, -- Rowan Collins [IMSoP]