Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49509 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43406 invoked from network); 25 Aug 2010 13:12:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2010 13:12:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 87.230.78.165 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 87.230.78.165 www.mysqlusers.de Linux 2.5 (sometimes 2.4) (4) Received: from [87.230.78.165] ([87.230.78.165:53798] helo=beberlei.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/00-43011-7D6157C4 for ; Wed, 25 Aug 2010 09:12:56 -0400 Received: by beberlei.de (Postfix, from userid 33) id 7F6421DA801E; Wed, 25 Aug 2010 15:12:52 +0200 (CEST) To: X-PHP-Originating-Script: 1000:func.inc MIME-Version: 1.0 Date: Wed, 25 Aug 2010 15:12:52 +0200 In-Reply-To: References: Message-ID: X-Sender: kontakt@beberlei.de User-Agent: RoundCube Webmail/0.3.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Annotation RFC + Patch From: kontakt@beberlei.de (Benjamin Eberlei) Hi Pierrick, Awesome RFC! :) I think this is a really useful addition on many levels. We had a chat about this yesterday, i just wanted to throw it into the discussion here again: I think a solution where "->getAnnotations()" returns only an array of the annotations data is simpler to use. Validation of the data would have to be done by the user in this case, but you could of course add a layer in PHP that transforms this data into an object structure. greetings, Benjamin On Wed, 25 Aug 2010 08:56:53 -0400, Pierrick Charron wrote: > Hello PHP Internals! > > Recently a RFC was included on the PHP Wiki[1]. > I know there've been a lot of buzz related to PHP 5.4, but this is not > the subject of this email. > > I'm here to propose a new feature in PHP: Annotations. > A patch is already available with 54 tests for the moment[2]. > > I worked together with Guilherme Blanco to make this support happen in > a fresh PHP SVN trunk checkout. > Please review, comment and provide feedback! I think it's a very > useful support and may benefit users a lot. > > [1] http://wiki.php.net/rfc/annotations > [2] http://www.adoy.net/php/Annotations.diff > > Regards, > Pierrick > > (Sorry if you receive this message twice but it looks like I have > problems with the ML)