Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64798 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95263 invoked from network); 10 Jan 2013 05:31:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jan 2013 05:31:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.53 as permitted sender) X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.219.53 mail-oa0-f53.google.com Received: from [209.85.219.53] ([209.85.219.53:63602] helo=mail-oa0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 05/50-02684-5325EE05 for ; Thu, 10 Jan 2013 00:31:33 -0500 Received: by mail-oa0-f53.google.com with SMTP id j6so184262oag.12 for ; Wed, 09 Jan 2013 21:31:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=AF82q4E5UnN9tOtInKL85UXJGl8wYV0wSTYprwzehFo=; b=nSjf2indQgyLQ8sDoCGHk7JkfokykGOfwteb06TouW76L8QGNrD0EfOrOMg7I/O8JX 4XgDF5T2jsqU19ztcCu2kCoK2TwQWO/nTjdi4AUMVLgTe8yL4CXL9oPt8EHnuU/UK4PY SnTmiskU6V2qjybVvrnLNlc5IePg80ahUBK6o8/AUZPwTHkJRKwVaphKJZBuZbB2K9L8 MFnJgXadVy/eMw0EWRoj1frxpyzCpGIB5di60Tr5ZaI2vNnHeJ1DEGtJTWMAynzTh1ZA t1dJmhGuxB1fbK13uinKpCLFNgmKfJinLBvdqwFnIg3zIoocoy3rHvT0GBAxuE2M6du8 qBwA== Received: by 10.60.171.11 with SMTP id aq11mr40499562oec.104.1357795890801; Wed, 09 Jan 2013 21:31:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.174.68 with HTTP; Wed, 9 Jan 2013 21:31:09 -0800 (PST) In-Reply-To: References: Date: Thu, 10 Jan 2013 00:31:09 -0500 Message-ID: To: Tyler Sommer Cc: Adam Harvey , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=bcaec54d3ed2bfaa3804d2e87d5d Subject: Re: [PHP-DEV] Was Reflection annotations reader - We Need A Vision From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") --bcaec54d3ed2bfaa3804d2e87d5d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'd love if Stas, Derick, Rasmus or Zeev comment here on criteria about acceptance of new features. You all claim that PHP is simple, that features include should be widely used and only important functions, classes that have regular and extensive usage would be in. I wonder how Annotations is different from Traits or Aspects. They all include new tokens on parser, they all "slow down" (as you keep claiming everytime) and they all have specific niches to be used. Now I wonder how Traits got IN, Aspects got rejected in 2007 and Annotations is being a nightmare to you guys. Or will you guys claim that Traits will be vastly used? Also talking about widely used support, I wonder about how SplDoubleLinkedList, SplInt, SplMaxHeap and all these classes that have very specific usages, just like also data structure readers like json_decode, parse_ini_file are part of the core while others also used as much as these ones like yaml_file are out. If this is a clear vision, sorry, I'm probably too dumb to understand. OOP is a trend in PHP and no matter what you guys try to do, procedural support is quite decent, OOP is getting there aswell as functional. We're just trying to improve OOP, which lacks of many different features that many users ask and keep hitting the wall. You guys may now know, but 9 out of 10 most used frameworks are entirely OO. It's a shame that because Yahoo code is procedural (worked at Yahoo already), SugarCRM code has terrible OO decisions (I've seen its code), adopting exceptions handling !!!in July 2012!!! that makes you guys say there's no need to improve on OO features that community is claiming. I implemented support in 2009, asked for this in 2010 and since then I've seen only in this ML the same feature being asked not by me at least more 10 times. Isn't it a sign of a feature demand? On Wed, Jan 9, 2013 at 9:52 PM, Tyler Sommer wrote: > Great points, Adam. I disagree with this one feature being excluded but I > do agree that just because something is in the userland doesn't necessari= ly > mean it should be in the core-- making my point rather moot. > > > Cheers. > > On Wed, Jan 9, 2013 at 6:28 PM, Adam Harvey wrote: > > > On 10 January 2013 10:05, Tyler Sommer wrote: > > > Annotations are already a part of PHP. They are widely used in one of > the > > > most prolific frameworks, Symfony, and it's ORM "counterpart" Doctrin= e. > > > > To explain what I meant by "PHP", since I think we're arguing > > semantics there: I mean php-src specifically, rather than the broader > > userland community, since we're on Internals. > > > > > To say "they shouldn't be part of PHP" is fine, but it's too late for > > that. > > > Annotations are already here. Are we going to just ignore this fact a= nd > > hold > > > back what a very significant portion of the community wants to see > > because > > > it conflicts with some ambiguous master plan for PHP? > > > > I don't have a master plan (that would be the part of this thread I'm > > not touching), but if it's a poorly thought out feature, sure. Pretty > > much every major project out there uses a unit testing framework and > > ORM: does that mean we should also be including equivalents for > > PHPUnit and Doctrine in core? > > > > Basically, I think the trend towards configuration as behaviour is an > > antipattern that results in less readable, harder to debug code. > > Having said that, the beauty of our userland being a set of > > communities is that each community can make their own decisions =E2=80= =94 > > since the good folks behind Doctrine have written an excellent > > annotation parser, those who want to go that way can, but it doesn't > > mean PHP has to go out of its way to encourage it. > > > > Or, to put it another way, not everything has to be a language > > feature. That way lies Perl. > > > > Adam > > > --=20 Guilherme Blanco MSN: guilhermeblanco@hotmail.com GTalk: guilhermeblanco Toronto - ON/Canada --bcaec54d3ed2bfaa3804d2e87d5d--