Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44678 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77009 invoked from network); 3 Jul 2009 13:04:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jul 2009 13:04:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=paul.biggar@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=paul.biggar@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.158 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: paul.biggar@gmail.com X-Host-Fingerprint: 72.14.220.158 fg-out-1718.google.com Received: from [72.14.220.158] ([72.14.220.158:40295] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/21-27980-4F10E4A4 for ; Fri, 03 Jul 2009 09:04:53 -0400 Received: by fg-out-1718.google.com with SMTP id 13so105034fge.0 for ; Fri, 03 Jul 2009 06:04:50 -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 :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=wX63VTk9Rjw+tpRYpKCyf/+xb6H7l++fP8RJdPpqKek=; b=hE/T1i5jtg0JcxFrtQe+SpZhUuPD8mbHCMNbaexSYMzLFH6WNFY+cTm7E2FAYWI0qb YuRUW5Qkknzagt/aCpwIdS3Y/9CBXHP85MN+ZlsJmCnka2jwG37LNPpww5QfZrufIs5l fr4vybJe/1/YnO5No+DrxjNkPlmefOkrq+2OI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=o9AHWX4ANrDUk7vhqk+cOX0j6akY0L5R6ABGE9Ao+8WhaOK6f3AMe8Po4g7IkVXLOw 0IO0LhnbENv812sYU9KzoBsjyOhbqTu6farX/n6hQXbolh4PCj6Z610tdj5iBCGwVuCk kctuLz6H1H3Ww2RR2CvhucGvc62c0v+mWcp0k= MIME-Version: 1.0 Received: by 10.86.23.16 with SMTP id 16mr992283fgw.75.1246626290106; Fri, 03 Jul 2009 06:04:50 -0700 (PDT) In-Reply-To: References: Date: Fri, 3 Jul 2009 14:04:30 +0100 Message-ID: To: ilia@ilia.ws Cc: PHP Internals , Derick Rethans , Stanislav Malyshev , Hannes Magnusson Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: Flexible type hinting From: paul.biggar@gmail.com (Paul Biggar) Hi Ilia, On Thu, Jul 2, 2009 at 3:35 AM, Paul Biggar wrote: > Thanks to Ilia for getting to ball rolling on scalar type hinting. > I believe I have a solution that caters to each crowd, without being > too complicated. My impression is that there only minor support for the "flexible" approach, and that even then, everyone prefers strict checking by default. So the ideal seems to be your patch, with the addition of function x ((int) $casted_parameter) { ... } Since this can be built as an extra step on top of your patch, this can be added later (although it would obviously be great if you preferred to add it now...). I recommend you proceed with the next step of getting your patch accepted (I presume an RFC or something). Thanks, Paul -- Paul Biggar paul.biggar@gmail.com