Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44684 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96786 invoked from network); 3 Jul 2009 14:15:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jul 2009 14:15:42 -0000 X-Host-Fingerprint: 200.142.121.42 unknown Received: from [200.142.121.42] ([200.142.121.42:9797] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/95-27980-B821E4A4 for ; Fri, 03 Jul 2009 10:15:40 -0400 Message-ID: <5C.95.27980.B821E4A4@pb1.pair.com> To: internals@lists.php.net Date: Fri, 03 Jul 2009 11:15:33 -0300 User-Agent: Thunderbird 2.0.0.22 (X11/20090605) MIME-Version: 1.0 References: <85073B28-671D-4A8F-B2D6-5704E3E180BB@ilia.ws> <89868409-EBAC-47DE-8D6D-0DCD88DE9DE6@ilia.ws> <67163A6A-9C8F-4F59-82A4-0B46A2EBEAE9@pooteeweet.org> <93ED589E60BA254F97435FE6C97F2C6702B925DD@leedsmet-exch1.leedsmet.ac.uk> In-Reply-To: <93ED589E60BA254F97435FE6C97F2C6702B925DD@leedsmet-exch1.leedsmet.ac.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 200.142.121.42 Subject: Re: [PHP-DEV] Re: Flexible type hinting From: rodrigo.saboya@bolsademulher.com (Rodrigo Saboya) Ford, Mike wrote: > > function func(int $i) > > for strict type checking, and > > function func((int)$i) > > for coercion aka casting (although now I've seen it written down I'm not > so sure! ;). I had thought about having "weak" and "strong' type checking even before Paul sent his proposal, but I rejected the idea myself for the confusion it might cause because I couln't think of a good syntax. This one actually looks pretty good, it's intuitive and consistent with what the language offers now. Big +1 regards Rodrigo Saboya