Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44868 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95825 invoked from network); 9 Jul 2009 12:42:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jul 2009 12:42:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=cschneid@cschneid.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=cschneid@cschneid.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain cschneid.com from 195.226.6.51 cause and error) X-PHP-List-Original-Sender: cschneid@cschneid.com X-Host-Fingerprint: 195.226.6.51 darkcity.gna.ch Linux 2.6 Received: from [195.226.6.51] ([195.226.6.51:36985] helo=mail.gna.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 63/00-29950-D85E55A4 for ; Thu, 09 Jul 2009 08:41:51 -0400 Received: from localhost (localhost [127.0.0.1]) by darkcity.gna.ch (Postfix) with ESMTP id DB922136018; Thu, 9 Jul 2009 14:41:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at gna.ch Received: from mail.gna.ch ([127.0.0.1]) by localhost (gna.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nJXeRwqdblCq; Thu, 9 Jul 2009 14:41:46 +0200 (CEST) Received: from [192.168.1.72] (84-75-131-148.dclient.hispeed.ch [84.75.131.148]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id 6A28613675A; Thu, 9 Jul 2009 14:41:46 +0200 (CEST) Message-ID: <4A55E56F.1000606@cschneid.com> Date: Thu, 09 Jul 2009 14:41:19 +0200 User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: Zeev Suraski CC: internals@lists.php.net References: <7.0.1.0.2.20090708224156.0ac5a438@zend.com> <7.0.1.0.2.20090709121921.0ae17d58@zend.com> In-Reply-To: <7.0.1.0.2.20090709121921.0ae17d58@zend.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Type hinting - Request for Discussion From: cschneid@cschneid.com (Christian Schneider) Zeev Suraski wrote: > We need to go back to the fundamentals - and look for use cases where > strict typing would be substantially superior to weak typing. I whole-heartedly agree. I can see some benefits of having weak typing (even though I'm not desperate for it) and think it would better fit PHP than strict typing. If someone brings up real world use cases for strict typing then please not only include the function being called but also the calling code as in my experience that's where the type juggling will happen once you have strict typing. And that's where weak typing could shine IMHO. Regards, - Chris