Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46828 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27190 invoked from network); 19 Jan 2010 19:57:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2010 19:57:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=danielc@analysisandsolutions.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danielc@analysisandsolutions.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain analysisandsolutions.com from 166.84.1.72 cause and error) X-PHP-List-Original-Sender: danielc@analysisandsolutions.com X-Host-Fingerprint: 166.84.1.72 mail1.panix.com Received: from [166.84.1.72] ([166.84.1.72:64201] helo=mail1.panix.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BE/C3-29385-6AE065B4 for ; Tue, 19 Jan 2010 14:57:27 -0500 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mail1.panix.com (Postfix) with ESMTP id 955FB1F088 for ; Tue, 19 Jan 2010 14:57:24 -0500 (EST) Received: by panix5.panix.com (Postfix, from userid 14662) id 901482424F; Tue, 19 Jan 2010 14:57:24 -0500 (EST) Date: Tue, 19 Jan 2010 14:57:24 -0500 To: PHP Internals List Message-ID: <20100119195724.GA5597@panix.com> References: <4B54FC87.8070106@zend.com> <4B55EE56.8040104@lerdorf.com> <4B55FA44.1060601@zend.com> <20100119190836.GA17124@panix.com> <4B5608B2.8050308@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B5608B2.8050308@zend.com> User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: [PHP-DEV] function call chaining From: danielc@analysisandsolutions.com (Daniel Convissor) Hi Stas: > If you don't understand the language, nothing is self-documenting. Yes. For clarity, what I meant by the "knowing the language" reference, I was imagining a PHP programmer trying to read/debug the code of a pre-existing project for the first time. When the code does stuff like: foo()()(); or $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. Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409