Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89410 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24464 invoked from network); 25 Nov 2015 16:31:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Nov 2015 16:31:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=pedronaroga@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pedronaroga@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.174 as permitted sender) X-PHP-List-Original-Sender: pedronaroga@gmail.com X-Host-Fingerprint: 209.85.160.174 mail-yk0-f174.google.com Received: from [209.85.160.174] ([209.85.160.174:35273] helo=mail-yk0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/B0-19088-462E5565 for ; Wed, 25 Nov 2015 11:31:32 -0500 Received: by ykba77 with SMTP id a77so61351493ykb.2 for ; Wed, 25 Nov 2015 08:31:28 -0800 (PST) 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:content-type; bh=bdWCZKsLc3GceEpUwehQtEE7doKlmSvigrlH8q3xVDs=; b=rDHp4JiRYndHYaKS/idRoCmrO3+f/Z2D7Hdh9hZn8OrURsH3gx0d71mWpbfuT2cEQx ZOm5w7CyLW1PQgd8Rwmf0zEtuvLAwNFkN0M3fUb5YiFb3Gi9JcEcHSLhLuelQnPYit52 CGhUcrhNkM67pt1oZCUAVrMsjRYJC863f1NAXCoKDzhtrJkLXcWgROXKw2S0TNiPJIyM jyUJAz5esERuFX741a7ebOmfz2P6THToCCe0mRKQZHnHpQp//urILJa6ERuOSDJHs0HM e/gBTh4NSzxX5fep2Ykku5mCIh0hwaleJL/8/i4DdC0EDHSq0Nt7mJj89zjtAFDe76CO sG8w== MIME-Version: 1.0 X-Received: by 10.129.154.148 with SMTP id r142mr36418082ywg.291.1448469088594; Wed, 25 Nov 2015 08:31:28 -0800 (PST) Received: by 10.37.202.9 with HTTP; Wed, 25 Nov 2015 08:31:28 -0800 (PST) In-Reply-To: <5655D82A.8020304@lsces.co.uk> References: <5654B516.4020700@gmail.com> <5655D82A.8020304@lsces.co.uk> Date: Wed, 25 Nov 2015 14:31:28 -0200 Message-ID: To: Lester Caine Cc: PHP Internals Content-Type: multipart/alternative; boundary=94eb2c0b7cbe7e761605255ffdd9 Subject: Re: [PHP-DEV] Native Annotation Syntax From: pedronaroga@gmail.com (Pedro Cordeiro) --94eb2c0b7cbe7e761605255ffdd9 Content-Type: text/plain; charset=UTF-8 2015-11-25 13:47 GMT-02:00 Lester Caine : > Any new system would require > every third party tool to be adapted to use it > That's not true at all. A new syntax would in no way invalidate parsing annotations from docblocks. The only legacy code that is supported by IDEs (if they are, PHPStorm will not hint/autocomplete, nor will eclipse/netbeans) would be Symfony2/Doctrine2. There are tons of other tools that with custom annotations (JMSSerializer as an example) that do not have any support at all. This argument is so flawed that you didn't consider that there are many parsers with many different syntaxes ( https://github.com/jan-swiecki/php-simple-annotations, https://github.com/nette/neon) and that ANY implementation, be it through docblocks or with a native syntax would require a rewrite anyway for many projects if those tools want to support the new native feature. Also, doing it through an extension is a nice way to delay adoption, because shared hosts rarely give the option to install new extensions. I don't have a vote here, but if I had, I'd strongly oppose any docblock-based implementation. --94eb2c0b7cbe7e761605255ffdd9--