Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44672 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36213 invoked from network); 2 Jul 2009 21:09:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2009 21:09:51 -0000 X-Host-Fingerprint: 216.38.34.51 wey-bb-calix-ws-50.dsl.redwing.net Received: from [216.38.34.51] ([216.38.34.51:4526] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/73-18647-D122D4A4 for ; Thu, 02 Jul 2009 17:09:50 -0400 To: internals@lists.php.net,"Ford, Mike" Message-ID: <4A4D2217.7040603@gmail.com> Date: Thu, 02 Jul 2009 16:09:43 -0500 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) 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: 216.38.34.51 Subject: Re: [PHP-DEV] Re: Flexible type hinting From: rpanning@gmail.com (Ryan Panning) 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! ;). Just want to throw my 2 cents in. Big +1 for this syntax I think with the addition of this and __cast() for objects, PHP's OO will be very flexible and can build great Frameworks, ORM's, etc.