Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89433 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75761 invoked from network); 25 Nov 2015 22:03:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Nov 2015 22:03:56 -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.47 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.47 mail-wm0-f47.google.com Received: from [74.125.82.47] ([74.125.82.47:36223] helo=mail-wm0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AD/50-05516-B4036565 for ; Wed, 25 Nov 2015 17:03:55 -0500 Received: by wmww144 with SMTP id w144so197329906wmw.1 for ; Wed, 25 Nov 2015 14:03:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type:subject:from:date:to :message-id; bh=zxYKjazrq2c4oSl5ryZL9Q/uk/jyLO7Nf15geqRifbo=; b=Z+xeNCym1TRk310ZW4nuAiSdQYZNJS57koAPgErkz0L7v1i/AyS/yfZrWqf2Rdw/ec pNva5WM5RfNapotbEp7XtpTh6sVKWHvf3p8wEJSMSdm1cVg5RWk3XrEoGFg4uBbtwUij NKBBDRPHd4NhXtO1R4wjCHCF6egsW+yj2F9ptsSFAaBowilKyUYcP0WXSWOonQ9pdUtp Fi40EA9MOURmxk9uY55wKFF4ZAn/vB14MkLag+R060juysuMtK7wy1KhdqtTSO2NpkZ6 2YJQb3aAoFgz2eOfVYpoiKOVKzJid9RCdw6IQ1Iv09JfTCP7vTxdBvywW5UqAfPYQMYA IBEA== X-Received: by 10.194.117.163 with SMTP id kf3mr33634129wjb.139.1448489031517; Wed, 25 Nov 2015 14:03:51 -0800 (PST) Received: from android-c0c105534eccd9bf.default ([95.148.161.224]) by smtp.gmail.com with ESMTPSA id vu4sm25022204wjc.2.2015.11.25.14.03.50 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Nov 2015 14:03:50 -0800 (PST) User-Agent: K-9 Mail for Android In-Reply-To: References: <5654B516.4020700@gmail.com> <5655D82A.8020304@lsces.co.uk> <5655E4E4.8070200@garfieldtech.com> <5655E61E.3000904@gmail.com> <5655E93F.90506@gmail.com> <5655F24B.6020401@garfieldtech.com> <5655F47C.3060504@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Date: Wed, 25 Nov 2015 22:03:43 +0000 To: PHP internals Message-ID: <1B1E6CD7-2378-43CA-A636-83383707AF8E@gmail.com> Subject: Re: [PHP-DEV] Native Annotation Syntax From: rowan.collins@gmail.com (Rowan Collins) On 25 November 2015 19:02:37 GMT, "guilhermeblanco@gmail.com" wrote: >Hi Rowan, > >If you're in a shared hosting, you can't "simply" remove the >configuration >variable. >Relying on extensions or configuration flags to support core language >features is very bad. We don't have flags that can turn IF support off >for >example, why we would have that for annotations? I think you misunderstood: I didn't mean that users would need to turn that feature off, I meant that that feature would be removed, and docblocks would always be saved. >I can bring more cons if you want... like how/when to parse "use" calls >in >a docblock In exactly the same place you'd parse them outside a docblock. I really don't understand all these arguments about the parsing being harder. The only difference is that you're parsing /** @Foo */ instead of <> or whatever other syntax anyone comes up with. Really the only difference is that a docblock means sharing with other metadata (directives for generating documentation). Which has the advantage of being polyfillable from older versions of PHP, but the disadvantage of not being as clearly separated as a new type of syntax. Oh, and the perception, right or wrong, that docblocks are "just comments", rather than metadata containers, which Drupal's experience may demonstrate is more important than a purely rational analysis would suggest. All the other details about how this or that tool will adapt, how whitespace and multiline values should be handled, etc, are going to need just as much thought whatever the syntax looks like. Regards, -- Rowan Collins [IMSoP]