Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44691 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9018 invoked from network); 4 Jul 2009 07:38:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jul 2009 07:38:56 -0000 Authentication-Results: pb1.pair.com header.from=j.boggiano@seld.ch; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=j.boggiano@seld.be; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain seld.be from 209.85.218.206 cause and error) X-PHP-List-Original-Sender: j.boggiano@seld.be X-Host-Fingerprint: 209.85.218.206 mail-bw0-f206.google.com Received: from [209.85.218.206] ([209.85.218.206:52103] helo=mail-bw0-f206.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4F/30-06257-F070F4A4 for ; Sat, 04 Jul 2009 03:38:56 -0400 Received: by bwz2 with SMTP id 2so2166593bwz.23 for ; Sat, 04 Jul 2009 00:38:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.124.17 with SMTP id s17mr1243772far.79.1246693131798; Sat, 04 Jul 2009 00:38:51 -0700 (PDT) In-Reply-To: <5A834C9A-6D1B-49B7-88E6-FF047B084AB6@pooteeweet.org> References: <5A834C9A-6D1B-49B7-88E6-FF047B084AB6@pooteeweet.org> Date: Sat, 4 Jul 2009 09:38:51 +0200 Message-ID: <4bcbf4710907040038i1ca78419wcafb497132b1bfc2@mail.gmail.com> To: Lukas Kahwe Smith Cc: PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] weak and strict type checking RFC From: j.boggiano@seld.ch (Jordi Boggiano) On 7/4/09, Lukas Kahwe Smith wrote: > Last evening I put together a quick proposal for a weak and strict checking > approach, since I felt that things were being concluded a bit prematurely. > More importantly I detailed the issues I see with a pure strict type > checking only approach. Thanks for the effort, I just wanted to add one thing though. I'm not sure how this would work with php internals really but you didn't mention arrays at all in your examples. The way I see it, with the current conversion code, a weak bool type check would take array() as a valid false value, and while I agree that it's a useful behavior in conditionals sometimes, in the case of type checks it feels horribly wrong. So I hope it's just not mentionned because it's not a problem, otherwise I think it should be clarified. Cheers, Jordi