Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34464 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38886 invoked by uid 1010); 4 Jan 2008 19:17:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 38858 invoked from network); 4 Jan 2008 19:17:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2008 19:17:09 -0000 Authentication-Results: pb1.pair.com header.from=sam@sambarrow.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=sam@sambarrow.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sambarrow.com from 205.234.132.11 cause and error) X-PHP-List-Original-Sender: sam@sambarrow.com X-Host-Fingerprint: 205.234.132.11 scottsdale.servershost.net Received: from [205.234.132.11] ([205.234.132.11:56843] helo=scottsdale.servershost.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 84/CD-63281-F408E774 for ; Fri, 04 Jan 2008 13:52:00 -0500 Received: from [98.172.154.66] (port=33707 helo=[10.200.100.14]) by scottsdale.servershost.net with esmtpsa (SSLv3:RC4-MD5:128) (Exim 4.68) (envelope-from ) id 1JAre9-0001CY-WD; Fri, 04 Jan 2008 12:51:58 -0600 To: Ilia Alshanetsky Cc: Stanislav Malyshev , internals Mailing List In-Reply-To: References: <477DB7BF.10201@chiaraquartet.net> <20080104105558.GC7861@mint.phcomp.co.uk> <477E5649.2080104@chiaraquartet.net> <477E619C.2050107@sektioneins.de> <477E78D0.3050501@zend.com> Content-Type: text/plain Date: Fri, 04 Jan 2008 13:50:23 -0500 Message-ID: <1199472623.15292.188.camel@sbarrow-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - scottsdale.servershost.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - sambarrow.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] type hinting From: sam@sambarrow.com (Sam Barrow) On Fri, 2008-01-04 at 13:22 -0500, Ilia Alshanetsky wrote: > On 4-Jan-08, at 1:20 PM, Stanislav Malyshev wrote: > > >> layer. It also makes the code far more readable and understandable > >> not the mention help doc generation tools that interrogate the code. > > > > I was under impression that it is good manners to actually document > > your code and not rely on the tools to "interrogate" your code. Of > > course, not everybody has good style, but I don't see much value in > > changing language so that people writing in bad style would feel > > more comfortable. > Well it would be much easier to type hint than to manually document every one of your function parameters. > If you can offload type documentation you can make better use of your > time documenting the logic of the code, there is something to be said > about self documenting code especially when doing things like WSDL > generation. Very good point.