Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49552 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44979 invoked from network); 28 Aug 2010 00:19:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Aug 2010 00:19:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-iw0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:62598] helo=mail-iw0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EB/C8-13473-426587C4 for ; Fri, 27 Aug 2010 20:19:48 -0400 Received: by iwn37 with SMTP id 37so3885047iwn.29 for ; Fri, 27 Aug 2010 17:19:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=9A2YtpHZMG7WR48AQNHZ8QBqJNvASoBHLMTL9J0mILM=; b=okKoGlSFXihMq6KY9CW0In/eWvHcRRpa3ZAN9/yh7rJ9zf/puLv8HL+rZG4b0oqmtJ zMX4gGMiiD/hn7fhzmhpqBMUKiUL2LsIOQAPaHg20aKbxER005HFw38hBQvPvG7M4Sr4 CoePJQJLaWoloYNl/zMR5ee2ExSKacYpEyeOA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=KifInb+iZNUK4IExRzF7TbEcEp/DQEwaaT7ARrtKBRGbsrjZ1Oi8PNmBp2rOnE5CdQ PKnu1jQ0FwGd8t3HoWxQGeCF19BXXr1UNuPCL8bcCYtF4uftFNs2lVBRIeph3aBZmyuX QH4nWiw5y17paAtTounVbyqd7XWIilHdInv5I= MIME-Version: 1.0 Received: by 10.42.71.169 with SMTP id k41mr551220icj.67.1282954785344; Fri, 27 Aug 2010 17:19:45 -0700 (PDT) Sender: kalle.php@gmail.com Received: by 10.42.1.4 with HTTP; Fri, 27 Aug 2010 17:19:45 -0700 (PDT) In-Reply-To: References: Date: Sat, 28 Aug 2010 02:19:45 +0200 X-Google-Sender-Auth: SNiOokXc_0zkdvkiHWjbdFTvnh4 Message-ID: To: Pierrick Charron , Guilherme Blanco Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Annotation RFC + Patch From: kalle@php.net (Kalle Sommer Nielsen) Hi Pierrick, Guilherme 2010/8/25 Pierrick Charron : > 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. After looking over both the RFC and patch I think its a great feature, and its something I remember Guilherme have bugged about since 5.3's development stage ;-). The syntax for one is decent, by having it in the code rather than a source code comment and its somewhat compatible with that in C#. The only thing I could see missing in the patch, although its a minor thing is to dump Annotations when doing something like: Reflection::export(new Reflection...(...)); and your small TODO in ReflectionAnnotation::__construct() :) But I'm a +1 for merging this into trunk, as it will without doubt get improved as we go, like with Traits. -- regards, Kalle Sommer Nielsen kalle@php.net