Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64731 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93292 invoked from network); 9 Jan 2013 12:12:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jan 2013 12:12:34 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:53264] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/D4-02684-1BE5DE05 for ; Wed, 09 Jan 2013 07:12:33 -0500 Received: from localhost (xdebug.org [127.0.0.1]) by xdebug.org (Postfix) with ESMTPS id AB57010D62C; Wed, 9 Jan 2013 12:12:30 +0000 (GMT) Date: Wed, 9 Jan 2013 12:12:30 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Mike van Riel cc: Yahav Gindi Bar , Pierrick Charron , Stas Malyshev , Rasmus Schultz , internals@lists.php.net In-Reply-To: <7710f59e26e95f23a7f6aff8892b881a@naenius.com> Message-ID: References: <50EBDEEE.8070605@sugarcrm.com> <7710f59e26e95f23a7f6aff8892b881a@naenius.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Docblocks vs Annotations (Was: Re: [PHP-DEV] [RFC] Reflection annotations reader) From: derick@php.net (Derick Rethans) On Tue, 8 Jan 2013, Mike van Riel wrote: > As far as I am concerned I'd separate this topic into a DocBlock > parser (that might take into account the current state of affairs with > DocBlock Annotations) and actual Annotation support. Yup - two different things. Something akin an extension that does your docblock parsing makes sense to me (perhaps tied up into reflection), but adding all sorts of weird extra syntax for "pure" annotations... meh. > Which ever way the annotation discussion goes; fact is that a lot of > libraries already use a form of annotations and I believe a DocBlock > parser should at least take this into account to facilitate existing > projects. There is a tokenizer for this already that Greg wrote ages ago in pecl: http://pecl.php.net/package/docblock - why can't that be extended to parse your style of annotations in docblocks? cheers, Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug Posted with an email client that doesn't mangle email: alpine