Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34443 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13302 invoked by uid 1010); 4 Jan 2008 18:37:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 13275 invoked from network); 4 Jan 2008 18:37:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2008 18:37:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=andi@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=andi@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: andi@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:30079] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/4C-63281-9DC7E774 for ; Fri, 04 Jan 2008 13:37:14 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 4 Jan 2008 20:37:09 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Date: Fri, 4 Jan 2008 10:37:04 -0800 Message-ID: <698DE66518E7CA45812BD18E807866CE01103ED3@us-ex1.zend.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PHP-DEV] type hinting Thread-Index: AchO//5BpGDLYjiEQ9O0iRmmbmzloQAALyTQ References: <477DB7BF.10201@chiaraquartet.net> <20080104105558.GC7861@mint.phcomp.co.uk> <477E5649.2080104@chiaraquartet.net> <477E619C.2050107@sektioneins.de> <477E78D0.3050501@zend.com> To: "Ilia Alshanetsky" , "Stas Malyshev" Cc: "internals Mailing List" X-OriginalArrivalTime: 04 Jan 2008 18:37:09.0667 (UTC) FILETIME=[D07F7F30:01C84F00] Subject: RE: [PHP-DEV] type hinting From: andi@zend.com ("Andi Gutmans") I think the "mixed" identifier is a minor issue but I also don't see it's purpose. If you don't want type hinting then don't write a type hint. It's also tool friendly... Andi > -----Original Message----- > From: Ilia Alshanetsky [mailto:ilia@prohost.org] > Sent: Friday, January 04, 2008 10:23 AM > To: Stas Malyshev > Cc: internals Mailing List > Subject: Re: [PHP-DEV] type hinting >=20 >=20 > On 4-Jan-08, at 1:20 PM, Stanislav Malyshev wrote: >=20 > >> 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. >=20 > 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. >=20 > Ilia Alshanetsky >=20 >=20 >=20 > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php