Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46829 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31302 invoked from network); 19 Jan 2010 20:09:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2010 20:09:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.117 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.117 us-mr1.zend.com Received: from [63.205.162.117] ([63.205.162.117:41519] helo=us-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/A4-29385-491165B4 for ; Tue, 19 Jan 2010 15:09:57 -0500 Received: from us-gw1.zend.com (us-ex1.zend.net [192.168.16.5]) by us-mr1.zend.com (Postfix) with ESMTP id C7D1C43FB2; Tue, 19 Jan 2010 05:17:35 -0800 (PST) Received: from [192.168.16.93] ([192.168.16.93]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 19 Jan 2010 12:09:53 -0800 Message-ID: <4B561191.2040700@zend.com> Date: Tue, 19 Jan 2010 12:09:53 -0800 Organization: Zend Technologies User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Lightning/1.0b2pre Thunderbird/3.0 MIME-Version: 1.0 To: Daniel Convissor CC: PHP Internals List References: <4B54FC87.8070106@zend.com> <4B55EE56.8040104@lerdorf.com> <4B55FA44.1060601@zend.com> <20100119190836.GA17124@panix.com> <4B5608B2.8050308@zend.com> <20100119195724.GA5597@panix.com> In-Reply-To: <20100119195724.GA5597@panix.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 Jan 2010 20:09:53.0050 (UTC) FILETIME=[5CB1DFA0:01CA9943] Subject: Re: [PHP-DEV] function call chaining From: stas@zend.com (Stanislav Malyshev) Hi! > $eep->oop()->ork()->ah()->ah(); > > the newcomer will have to spend significant time rummaging around the > source code to figure out what classes are involved. As opposed to: $oop = $eep->oop(); $ork = $oop->ork(); $ah = $ork->ah(); $ah2 = $ah->ah(); where it instantly becomes crystal clear! Come on, this argument of "I could read any code without ever knowing anything about anything but you feature broke it" is getting really stale. You couldn't, and the feature changed nothing. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com