Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48393 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27396 invoked from network); 22 May 2010 16:30:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 May 2010 16:30:19 -0000 Authentication-Results: pb1.pair.com header.from=phpwnd@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=phpwnd@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: phpwnd@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:37985] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/3B-46027-A9608FB4 for ; Sat, 22 May 2010 12:30:19 -0400 Received: by bwz14 with SMTP id 14so394610bwz.29 for ; Sat, 22 May 2010 09:30:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=fJYBqVec0FEjfu0/W2q11L/oOaNzF5xy+elTHK9OZJo=; b=hbgpNvPCmlaw2BL4U7EevepISNng0uWsiMkz8thApEId06WbBLPfcr8O6NsMuETa9L Orzlwn2qJnD7aObBCFz2wUVM+MbmagQqCGqacWR61w3DmSXZLWdRteMmBxYNxeXOu9C0 o8163B+Hq4xa9nHyNIrCE7l4lrzxiRQHYgjS8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=WEwceZQE7PG1nxw75fqBfoJJoAJQoR1ayv3v8jzdSHLxVJ0hlxODpvXoMLAOSbmWrF vjcXlnSSfZqTTW+HQlgPN9WGnWLdbGxC+Z6hk9UybRFdUdN3Xn8hxpbS+S/1tW6hVqWF tQvW+1mzaBY3Xe0VWk/1ecZg8NPa8SpmtUyd0= MIME-Version: 1.0 Received: by 10.204.34.201 with SMTP id m9mr968239bkd.127.1274545815828; Sat, 22 May 2010 09:30:15 -0700 (PDT) Received: by 10.204.67.206 with HTTP; Sat, 22 May 2010 09:30:15 -0700 (PDT) In-Reply-To: <7.0.1.0.2.20100522175819.0a601c68@zend.com> References: <7.0.1.0.2.20100522175819.0a601c68@zend.com> Date: Sat, 22 May 2010 18:30:15 +0200 Message-ID: To: Zeev Suraski Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Type hinting From: phpwnd@gmail.com (Josh Davis) On 22 May 2010 17:04, Zeev Suraski wrote: > As one of the key people who designed PHP's type system I consider strict > type checks completely alien to and counterintuitive in PHP and am therefore > pushing to implement 'weak' typing instead, in a way that's consistent and > familiar to users. I would normally refrain from posting on the dev list but as a "user" I feel the need to make sure that my position isn't misrepresented, so here it is. 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. Thanks for reading. JD