Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48396 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65260 invoked from network); 22 May 2010 20:39:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 May 2010 20:39:16 -0000 Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 188.40.37.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 188.40.37.16 hq1.backendmedia.com Linux 2.6 Received: from [188.40.37.16] ([188.40.37.16:32788] helo=hq1.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/91-46027-2F048FB4 for ; Sat, 22 May 2010 16:39:14 -0400 Received: from localhost (unknown [127.0.0.1]) by hq1.backendmedia.com (Postfix) with ESMTP id B9650200C18D; Sat, 22 May 2010 20:39:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from hq1.backendmedia.com ([127.0.0.1]) by localhost (hq1.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iHctiR8HjoeG; Sat, 22 May 2010 22:39:17 +0200 (CEST) Received: from soitgoes.lan (g225150230.adsl.alicedsl.de [92.225.150.230]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by hq1.backendmedia.com (Postfix) with ESMTPSA id 1E821200C187; Sat, 22 May 2010 22:39:17 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii In-Reply-To: Date: Sat, 22 May 2010 22:39:09 +0200 Cc: Zeev Suraski , internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <93EFAEF4-26F3-44A1-85ED-5E71E665B966@pooteeweet.org> References: <7.0.1.0.2.20100522175819.0a601c68@zend.com> To: Josh Davis X-Mailer: Apple Mail (2.1078) Subject: Re: [PHP-DEV] Type hinting From: mls@pooteeweet.org (Lukas Kahwe Smith) On 22.05.2010, at 18:30, Josh Davis wrote: > As you wrote, you worked on PHP's _type system_ which is dynamic, > really cool, juggles strings with ints and what not. However, the > topic here is the _type hinting system_. As far as I know, there's no > "weak" type hinting; if a method signature hints for an array and is > given an integer, it throws a catchable fatal error. Therefore, as a > user, what I am familiar to is a strict _type hinting system_. > Anything else would feel inconsistent to me. can we please just stop calling a something a "type hinting" system, = which leads to a catchable fatal error when the type does not strictly = match? thats a very misleading euphemism. its simply strict typing, it = has nothing to do with hinting. anyway, yes there is a proposal for an actual hinting system as Zeev has = pointed out just a few mails early in the thread than yours: http://wiki.php.net/rfc/typecheckingstrictandweak=20 regards, Lukas Kahwe Smith mls@pooteeweet.org