Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64639 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76448 invoked from network); 7 Jan 2013 17:09:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jan 2013 17:09:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.49 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.215.49 mail-la0-f49.google.com Received: from [209.85.215.49] ([209.85.215.49:59321] helo=mail-la0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/50-08897-E210BE05 for ; Mon, 07 Jan 2013 12:09:03 -0500 Received: by mail-la0-f49.google.com with SMTP id fk20so16543291lab.36 for ; Mon, 07 Jan 2013 09:09:00 -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=bcrJf3yXldDnLx9DptYW/DN8XkDc54raualRUAUu7XQ=; b=wfCvFLc1SzhX9XzU8sUT4J/EhA+8xBMW/dV9la1n+W73brzW9Qf1qlLDBUxbDIV/t+ TaVD2xIiciUVAur/MRKyCyhaZoaMkBXTPFt8yvq4PB70yCm70wxG5IleIAa7z+NS7I6v /yBNd1NLXFckJf86umR85Tr1kScHOiHTWdx+LKyCLqZEax9ISGnA3S3qmzZ013YK0myc b3PAlai7n/WLqrUvYgM4vEKOwEbPIUcLdLERJHVaHomBB2SDBCKlwEpVv9WJYUw3UWaO heNT9lXUxP138QHbtfYvmCjQ7+vr9xtM0xvx+0rWHgSAwVX6BDZ4bNfy46kN1Fy6IYGJ Kgpg== MIME-Version: 1.0 Received: by 10.112.51.233 with SMTP id n9mr25917655lbo.47.1357578539896; Mon, 07 Jan 2013 09:08:59 -0800 (PST) Received: by 10.112.127.230 with HTTP; Mon, 7 Jan 2013 09:08:59 -0800 (PST) In-Reply-To: <50EAEECB.7060005@lsces.co.uk> References: <50EA8794.4000202@lsces.co.uk> <50EAEECB.7060005@lsces.co.uk> Date: Mon, 7 Jan 2013 18:08:59 +0100 Message-ID: To: Lester Caine Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] Reflection annotations reader From: pierre.php@gmail.com (Pierre Joye) On Mon, Jan 7, 2013 at 4:50 PM, Lester Caine wrote: > Pierre Joye wrote: >> >> On Mon, Jan 7, 2013 at 9:30 AM, Lester Caine wrote: >>> >>> Mike van Riel wrote: >>>> >>>> >>>> >>>> At phpDocumentor we have been working on formalizing the PHPDoc Standard >>>> for >>>> quite some time now and I would ask you to take a look at that and use >>>> it as >>>> basis for the parsing of DocBlocks. >>> >>> >>> This also forms the basis of many of the IDE in-line help material. >>> Producing something different then requires that all the IDE's are >>> reworked >>> as well :( >> >> >> Annotations have nothing to do with user land documentation, please >> don't go down this discussion again as it will be of no help for this >> topic. > > > So scrap https://wiki.php.net/rfc/reflection_doccomment_annotations and > https://wiki.php.net/rfc/annotations-in-docblock as not being a appropriate > way of handling this then! DocBlocks have a well defined format so hijacking > them for other purposes as this thread is proposing is what is not helpful? It is helpful because it is the only way to do it right now, within comments. And no, docblocks are not annotation either. In my humble opinion there is only one clean way to implement them, at compile time, using the parser. Using SPL (kind of "let put everything in there because the engine is too complicated (implementation or politics around it)") is not a good idea either. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org