Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44704 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74321 invoked from network); 4 Jul 2009 18:26:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jul 2009 18:26:00 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.156 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 72.14.220.156 fg-out-1718.google.com Received: from [72.14.220.156] ([72.14.220.156:3863] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3F/2B-06257-6BE9F4A4 for ; Sat, 04 Jul 2009 14:25:59 -0400 Received: by fg-out-1718.google.com with SMTP id 13so320967fge.0 for ; Sat, 04 Jul 2009 11:25:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=styq7A7iHKIE3rCFfOieRIQKVPGvX7x1oZTfrkEoldc=; b=aicgGpIK9b2SeuWeYv4uUTmg8kc5phQl+tP0fJTqtWlnyuxaaFK4BZUwfpjOOJojGE p6QmTrXI326Xkt4hu7w2gC2BfVEf69yiGVNNknznQsI1NtpFaK4oy9XQpeSiSB/9Oy/U 8AG/58M3OdFGS9GywbDKguAc/q3Yd3lv8q4HY= 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:content-transfer-encoding; b=LAULCQkXkVIWj9QByIlSHlRqWcrmXPmx3XHkxwsxE3JKqEVJZfsxKZNCNtTQufDgVQ lmdFaAuKsUk5MTL243Xd+pten7rxza9/6Z7b4PhSDQWYu5nojucIW3qR0bxt4o1tbfhf pAHgxGPgKuB+mwDJw861IWrf1SXBAZJ3Q9ITM= MIME-Version: 1.0 Received: by 10.86.89.6 with SMTP id m6mr1495571fgb.1.1246731955783; Sat, 04 Jul 2009 11:25:55 -0700 (PDT) In-Reply-To: <9B8C39B7-A5F8-4E61-BD7E-2069E584290D@pooteeweet.org> References: <5A834C9A-6D1B-49B7-88E6-FF047B084AB6@pooteeweet.org> <9B8C39B7-A5F8-4E61-BD7E-2069E584290D@pooteeweet.org> Date: Sat, 4 Jul 2009 20:25:55 +0200 Message-ID: To: Lukas Kahwe Smith Cc: Paul Biggar , 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: pierre.php@gmail.com (Pierre Joye) hi. On Sat, Jul 4, 2009 at 8:12 PM, Lukas Kahwe Smith wrote: > Well to me it Sounded like you wanted to Rely on Standard Type juggling and > what i am proposing is more strict than that. More over i am Not convinced > that strict should Be the Default. The default is what we have now (implicit mixed). The (type) syntax is known already, it would be rather confusing to use yet another syntax in this case. I like the current proposal with "int foo" for strict and "(int) foo" for an automatic cast. As Gwynne suggested on IRC, I would also like to have "mixed", for completeness. It brings nothing but it makes the code clearer. Another useful type would be "callback". Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org