Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50352 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 460 invoked from network); 18 Nov 2010 15:23:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2010 15:23:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=jbondc@openmv.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jbondc@openmv.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain openmv.com from 64.15.152.204 cause and error) X-PHP-List-Original-Sender: jbondc@openmv.com X-Host-Fingerprint: 64.15.152.204 mail.ca.gdesolutions.com Received: from [64.15.152.204] ([64.15.152.204:52617] helo=mail.ca.gdesolutions.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FB/36-01108-AD445EC4 for ; Thu, 18 Nov 2010 10:23:07 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.ca.gdesolutions.com (Postfix) with ESMTP id 8E2E35D34; Thu, 18 Nov 2010 10:23:00 -0500 (EST) X-Virus-Scanned: amavisd-new at gdesolutions.com Received: from mail.ca.gdesolutions.com ([127.0.0.1]) by localhost (mail.ca.gdesolutions.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4euK5J6OdSla; Thu, 18 Nov 2010 10:23:00 -0500 (EST) Received: from djbondc (modemcable083.208-56-74.mc.videotron.ca [74.56.208.83]) by mail.ca.gdesolutions.com (Postfix) with ESMTP id 3F0AB5D32; Thu, 18 Nov 2010 10:23:00 -0500 (EST) To: , "'Larry Garfield'" Cc: References: <201011172316.44702.larry@garfieldtech.com> In-Reply-To: Date: Thu, 18 Nov 2010 10:22:58 -0500 Message-ID: <002101cb8734$7bc6b3e0$73541ba0$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcuHJXeVw+4zhSkdR7CbUxrTgZCuBwADLTdA Content-Language: en-ca Subject: RE: [PHP-DEV] PHP 5.4 - Meta attribute (aka. Annotations) support discussion From: jbondc@openmv.com ("Jonathan Bond-Caron") On Thu Nov 18 08:34 AM, guilhermeblanco@gmail.com wrote: > Hi Larry, >=20 > For existent project examples and usage, here are 2 links of the=20 > upcoming versions of Doctrine 2 and Symfony 2: >=20 > http://www.doctrine-project.org/projects/orm/2.0/docs/reference/basic- > mapping/en#introduction-to-docblock-annotations > http://docs.symfony-reloaded.org/guides/validator.html >=20 > Please understand that Roman, Benjamin, Jonathan and I wrote this=20 > Annotation parser for Doctrine, which was reused by Bernhard on=20 > Symfony. > So I have clean understanding of the issue we have on hands and every=20 > single point that it is required to address. That's why I wrote the=20 > RFC. >=20 I'm really confused about the "issue", no objections have been made for = a docblock parser for "annotations".=20 That can easily live as PECL extension, Doctrine ORM mapping can done = in XML, YAML, docblock annotations,... symphony validation in XML, YAML, = docblock annotations, ...? Why is it such a persistent *issue* to have language level annotations? Because people want their decorative data around class properties? Java = developers who want their hibernate? For uses cases in java (annotations as hints to the compiler): http://video.google.com/videoplay?docid=3D-1531727105949862857# Does this even apply to php? Hints to the parser? Optimizations? I'll say it again, I'm not against annotations but copying java and its = mistakes is not the way to go. Remember that vendors (oracle, bea,...) = love annotations to sell their tools, in orm hibernate won.=20 Please improve the RFC to address php-specific problems Now, I'm going to go back and listen to that song "sugar, sugar" by the = archies