Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50344 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68333 invoked from network); 18 Nov 2010 13:34:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2010 13:34:21 -0000 Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:33892] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/20-01108-B5B25EC4 for ; Thu, 18 Nov 2010 08:34:20 -0500 Received: by fxm16 with SMTP id 16so1099521fxm.29 for ; Thu, 18 Nov 2010 05:34:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=m4N7dhANiziy3i4wvB5WFdXpWNdnD0YDksGL0GQbYn0=; b=CykqFPCEljfen17BlCeBlxN0I/0aZdWro84Ha89GIKi2wyjs+FZK6ZiSuejnByT2Al VEKfee7JT2N3kdGLFU2nrJe3WPoSNY3nFHmQvG+XmiEAZf/8GciotP1LTs/wdu0gWd5J h85KKG82EYcJfNPhA200IPbnVQlUi1CdDjMZQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=nDSCpRZ2LYAbz0DbebvnhxBnGd9rY4kQDqttdp8B4h4mAqzjPkE4aggxSnxC6DSQQ2 1kNScDVxG6qT+3Ktj7cIDmooxGB6SVSCQ5/kwTbl7oYd6QGvXomry8vWcVNCx3Bqbl/F qI/3a8D1KK2V5H86ePX7i1ZIOVkk0DDmL/t1w= MIME-Version: 1.0 Received: by 10.223.79.65 with SMTP id o1mr531866fak.145.1290087255270; Thu, 18 Nov 2010 05:34:15 -0800 (PST) Received: by 10.223.105.5 with HTTP; Thu, 18 Nov 2010 05:34:14 -0800 (PST) In-Reply-To: <201011172316.44702.larry@garfieldtech.com> References: <201011172316.44702.larry@garfieldtech.com> Date: Thu, 18 Nov 2010 11:34:14 -0200 Message-ID: To: Larry Garfield Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] PHP 5.4 - Meta attribute (aka. Annotations) support discussion From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") Hi Larry, For existent project examples and usage, here are 2 links of the upcoming versions of Doctrine 2 and Symfony 2: http://www.doctrine-project.org/projects/orm/2.0/docs/reference/basic-mappi= ng/en#introduction-to-docblock-annotations http://docs.symfony-reloaded.org/guides/validator.html Please understand that Roman, Benjamin, Jonathan and I wrote this Annotation parser for Doctrine, which was reused by Bernhard on Symfony. So I have clean understanding of the issue we have on hands and every single point that it is required to address. That's why I wrote the RFC. Yesterday night a couple of people joined on #php.pecl and discussed a possible new implementation. I'll write what was discussed and probably some sample code. Cheers, On Thu, Nov 18, 2010 at 3:16 AM, Larry Garfield wr= ote: > On Wednesday, November 17, 2010 5:56:05 am Ferenc Kovacs wrote: >> On Wed, Nov 17, 2010 at 12:54 PM, Ferenc Kovacs wrote: >> > On Wed, Nov 17, 2010 at 11:58 AM, Arvids Godjuks >> > > > >> > > wrote: >> >> Hello Internals! >> >> >> >> For me, as a user-land developer, this issue seems as if some people >> >> are trying to push the annotations at any cost. What they fail to see= , >> >> is that annotations are never described what they are and how they ca= n >> >> be useful in our developer work. Right now I, and I think many other >> >> user-land developers, just fail to see what the annotations are >> >> without any meaningful example. > > *snip* > >> On the other hand: it seems that more examples about the usage wouldn't >> hurt in the RFC... >> >> Tyrael > > I have to agree with this sentiment in particular. =C2=A0As I've not work= ed in a > language with formal annotations, I still don't grok the use case. > > To those supporting some form of syntactic annotations (whatever the synt= ax), > can you please explain, simply and preferably with examples, what I could= do > with such syntax that I cannot do now in user-space, and/or what I could = do > better/faster/cheaper with such tools than what I can do now in user-spac= e? > > I think that's the missing piece here: The practical ever-day example of = how > *my* code would get better because of annotations. > > --Larry Garfield > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Guilherme Blanco Mobile: +55 (16) 9215-8480 MSN: guilhermeblanco@hotmail.com S=C3=A3o Paulo - SP/Brazil