Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52147 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43035 invoked from network); 9 May 2011 14:44:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 May 2011 14:44:55 -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; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.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.218.42 mail-yi0-f42.google.com Received: from [209.85.218.42] ([209.85.218.42:63362] helo=mail-yi0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/96-20726-5EDF7CD4 for ; Mon, 09 May 2011 10:44:53 -0400 Received: by yib12 with SMTP id 12so2213489yib.29 for ; Mon, 09 May 2011 07:44:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=PpFdkriYVxaW1yOJ6pjfWTfcgPLptUhFF7Q9+4SnzTs=; b=PPdv7xK0nRRpurRhYLM1YfDdasE5FiL3qM2uFbs67kG60FMwPXRQUieYQoN2D03oTF 0mmAGzc9AfZMN6BaiEt136ltb8BoVN4zT0A9dDKPHNYPvQnbs7BIgfJ7dUZHneT3C45V CUGS23anPRE1Qtay011lxEFveGybEdheuW9/s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=ugmDZvoBUXgT35y7fQ0AxJIuZCLKrXOPaFHOIp4d5wW5EJpU2NSJPICfha4aUhPDH+ a/nsapLx8SUjAQGGEy+pHWFpJrDZaZZkhef0gxanhGF45UprcBTJCIBT6UFTTTYawusv MxsBqnQq3bXD4SbA3l2uxPh9e4m3ULgMl+2Ck= Received: by 10.147.21.15 with SMTP id y15mr5663372yai.2.1304952291145; Mon, 09 May 2011 07:44:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.147.171.4 with HTTP; Mon, 9 May 2011 07:44:31 -0700 (PDT) In-Reply-To: <4DC7A7F0.4000504@sugarcrm.com> References: <4DC729EE.9090600@sugarcrm.com> <4DC75FFF.40008@lerdorf.com> <4DC7A7F0.4000504@sugarcrm.com> Date: Mon, 9 May 2011 11:44:31 -0300 Message-ID: To: Stas Malyshev Cc: Rasmus Lerdorf , PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] 5.4 again From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") Hi, I'd love if you ever discuss these items for 5.4: - ReflectionNamespace Currently it's impossible to grab a docblock that documents an Annotations, for example, or even access the namespace declaration. It's also impossible to check which "use" is declared on the namespace/file/class scope. - Annotations I already proposed a patch and none here discussed. You rather preferred to shout "PHP doesn't need Annotations" instead of discuss the patch that was proposed. Actually, it was proposed twice, but it seems that you only looked at first one (which I agree that was incompatible with PHP way of being). Pierrick and I updated the patch to be as similar as possible with PHP structure, but none here even looked at it. For those interested: https://github.com/adoy/PHP-Annotations - SplArray We currently support SplInt, SplString, SplFloat, SplBool, etc. We could support SplArray which would perfectly enhance implementations that need to keep track of array state. Currently PHP provides 0 support on this area, and it would be nice if it provides a helpful API to it. One good example to look at is: https://github.com/doctrine/common/blob/master/lib/Doctrine/Common/Collecti= ons/Collection.php - Comparable Since operators overloading on PHP is hard to be implemented natively, we could easily support it through OO. This idea can be extensively discussed, but someone already proposed a patch previously any none discussed it. PS: I think that internals mailing list should be revised with all proposed ideas and wrap them on a better plan. It seems to me that you are not interested on user's request and rather accept/implement only what the features that interest you. It's very bad for the language and very bad for all of users. Regards, On Mon, May 9, 2011 at 5:38 AM, Stas Malyshev wrot= e: > Hi! > >> I see the array shortcuts are on your todo discussion list there. We >> probably shouldn't get into a full discussion on that since it will span >> hundreds of messages. But if any of the folks who voted no last time >> around have changed their minds, it would be good to know. And before >> deciding, try using MongoDB from PHP for a couple of weeks. :) > > I agree on both discussion point and MongoDB point :) I think for things > that were already discussed extensively it makes sense to have a vote in > case people changed their minds and discuss at length only if they have > something new to say - like proposing new approach to the problem - which= is > this case probably won't happen. > -- > 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 > > --=20 Guilherme Blanco Mobile: +55 (16) 9215-8480 MSN: guilhermeblanco@hotmail.com S=C3=A3o Paulo - SP/Brazil