Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53379 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21131 invoked from network); 20 Jun 2011 11:05:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jun 2011 11:05:47 -0000 Authentication-Results: pb1.pair.com header.from=sebastian@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=sebastian@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 93.190.64.33 as permitted sender) X-PHP-List-Original-Sender: sebastian@php.net X-Host-Fingerprint: 93.190.64.33 mail-3.de-punkt.de Received: from [93.190.64.33] ([93.190.64.33:59250] helo=mail-3.de-punkt.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/37-34681-9892FFD4 for ; Mon, 20 Jun 2011 07:05:46 -0400 Received: (qmail 9892 invoked by uid 511); 20 Jun 2011 11:05:42 -0000 Received: by simscan 1.4.0 ppid: 9888, pid: 9890, t: 0.0296s scanners: attach: 1.4.0 Received: from unknown (HELO ?192.168.2.31?) (sb@sebastian-bergmann.de@91.55.60.196) by 0 with ESMTPA; 20 Jun 2011 11:05:42 -0000 Message-ID: <4DFF2987.5010408@php.net> Date: Mon, 20 Jun 2011 13:05:43 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Standard constants as part of the lexer From: sebastian@php.net (Sebastian Bergmann) Am 20.06.2011 13:00, schrieb Derick Rethans: > Although it's a nice performance increase, I think that breaking > count() as a method name is not a good idea, as I would assume it's > used a lot. Even though count() and strlen() can be optimised that much, > how much does it buy a fully fledged application? Especially since we have a built-in Countable interface that requires the implementation of a count() method. -- Sebastian Bergmann Co-Founder and Principal Consultant http://sebastian-bergmann.de/ http://thePHP.cc/