Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52200 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1616 invoked from network); 10 May 2011 07:44:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 May 2011 07:44:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:52245] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4A/00-01064-3DCE8CD4 for ; Tue, 10 May 2011 03:44:20 -0400 Received: by eyf5 with SMTP id 5so1772181eyf.29 for ; Tue, 10 May 2011 00:44:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Yy7wctUJdshI3a7I5pcyclBrXz0dhauzFoURmSPT7Mc=; b=GPiRMgCY8dzhjZTkm45jp6lshTgV7FlLLe/ixjx4QP6TzduOe8I3WhDJ36XtojtE8d 2JBIdVj9wuC5IOwK47ALICPX5GrEYmeJDBmqeXO4l4ArXBpVG9HCbFl4TqQBbsihIb5D sJiUCZj9mYYi7Vc8GRbFnJTbE80u2/oGiXRSc= 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=f34zUE2wJc+sWKmynYKxsCVbwpr+yAQL8CGhE2JWTTn39dRhVXsK1OyKvc/4hUB5bw uTrhvEWBGAqCXpHowreu1ao/vRRV/JZ3IhXc+Bd8ZirR1kKcnn7PEzyWy3vO6z0sYXmb fWWbqifNuxIdO/xAwLiFaTprvzuAcvr7OAxmU= MIME-Version: 1.0 Received: by 10.14.148.67 with SMTP id u43mr3554656eej.7.1305013455856; Tue, 10 May 2011 00:44:15 -0700 (PDT) Sender: tyra3l@gmail.com Received: by 10.14.127.79 with HTTP; Tue, 10 May 2011 00:44:15 -0700 (PDT) In-Reply-To: References: <4DC826B1.4090806@lerdorf.com> <4DC82A36.8090604@lerdorf.com> <4DC83401.2090202@sugarcrm.com> <4DC8D122.3050507@lsces.co.uk> Date: Tue, 10 May 2011 09:44:15 +0200 X-Google-Sender-Auth: HGxsKPrgf2sILMRCDCtMOgX0GHg Message-ID: To: Chad Fulton Cc: Lester Caine , PHP Internals Content-Type: multipart/alternative; boundary=bcaec51a7af876a45f04a2e71f87 Subject: Re: [PHP-DEV] annotations again From: info@tyrael.hu (Ferenc Kovacs) --bcaec51a7af876a45f04a2e71f87 Content-Type: text/plain; charset=UTF-8 On Tue, May 10, 2011 at 9:01 AM, Chad Fulton wrote: > On Mon, May 9, 2011 at 10:46 PM, Lester Caine wrote: > > *IS* it clear by now that the majority of users want this? > > For what it's worth, I still oppose Annotations. > > > And the argument > > that 'You don't have to use it' does not wash either since once it has > been > > pushed in, some of the libraries we are using are going to start > requiring > > it simply because those developers do like the idea, but it does not > > necessarily mean that THE CURRENT PROPOSAL is the right way of doing it? > > I especially oppose the complexity of the current proposal. One of the > reasons I prefer PHPDoc to the proposed Annotations is because they're > a simple key=>value syntax. > that would be the same argument that we don't need objects because we have arrays, and if you only need something to store your structures, then both can be used for that. > > I'm already doing my coding in PHP - why do I have to code in a new > sub-language when all I want is a litte bit of meta-data? > nobody is forcing you to use annotations, it won't replace the docblocks. > > My main question is: Why do we need more than key=>value? When you say > that "everyone" supports annotations (if that is true), are you sure > they actually want more than key=>value? > at least Doctrine, Symfony and FLOW3 does. Sebastian expressed that he is fine with the current Docblock support for PHPUnit. the FLOW3 used to use single key values in the past, but I'm not familiar with the current situation. for actual use-cases you can check http://blog.seric.at/2011/05/03/annotations-with-symfony2/ or http://www.doctrine-project.org/docs/orm/2.0/en/reference/annotations-reference.html#annref-column > > Discussion of this does not seem to appear in your "Why do we need > Class Metadata?" section. > I also think that it would be a good idea to link or describe annotations in general, because it seems that nobody bothers to read that up without joining the conversation... Tyrael --bcaec51a7af876a45f04a2e71f87--