Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49597 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13361 invoked from network); 11 Sep 2010 00:23:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Sep 2010 00:23:05 -0000 Authentication-Results: pb1.pair.com header.from=pierrick@webstart.fr; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=pierrick@webstart.fr; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain webstart.fr from 209.85.214.42 cause and error) X-PHP-List-Original-Sender: pierrick@webstart.fr X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:41646] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2D/02-17717-9EBCA8C4 for ; Fri, 10 Sep 2010 20:23:05 -0400 Received: by bwz7 with SMTP id 7so3078258bwz.29 for ; Fri, 10 Sep 2010 17:23:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.136.71 with SMTP id q7mr1039375bkt.111.1284164581720; Fri, 10 Sep 2010 17:23:01 -0700 (PDT) Received: by 10.204.46.207 with HTTP; Fri, 10 Sep 2010 17:23:01 -0700 (PDT) In-Reply-To: <4C8AC526.7000505@sugarcrm.com> References: <4C873C0F.1010200@zend.com> <4C879613.7090709@zend.com> <4C887D2B.2000605@zend.com> <4C8AC526.7000505@sugarcrm.com> Date: Fri, 10 Sep 2010 20:23:01 -0400 Message-ID: To: Stas Malyshev Cc: PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Re: PHP Annotations RFC + Patch From: pierrick@webstart.fr (Pierrick Charron) Hi Stas, Annotations is a new concept in PHP (even if some framework already use an user space implementation of them) and I think it is normal that people will have to read a little bit about this eventually new feature before using it. This is the same thing for traits, if you don't know what is a trait you will not know how to use them. But once you know the concept it's really easy to understand what is an annotation class, parameter etc... Is it really the [] Syntax that you don't like for annotations ? I was personally not against the [] array syntax and I understand that this annotation syntax will make the future implementation of this [] array syntax impossible. So I could change it to the syntax proposed by Etienne in the first thread : %Annotation(%Email(checkMX = true)); I'm not against any other proposal of syntax so if you have one to proposition do not hesitate. Regards, Pierrick 2010/9/10 Stas Malyshev : > Hi! > >> [Validation(Email(checkMX=>true))] looks better. > > Even here it's not clear what is happening. What is "Validation", what is > "Email", what is "checkMX" (are they all classes? or only some of them?), > what is happening to them (are these classes being instantiated? when? what > is passed as parameters? What is the scope of that? etc). Why can we have > now two ways to instantiate classes, complete with mix of []s and ()s, but > having array syntax using [] is still too complex? > > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >