Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44673 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40021 invoked from network); 2 Jul 2009 21:19:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2009 21:19:38 -0000 Authentication-Results: pb1.pair.com header.from=olafurw@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=olafurw@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.223 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: olafurw@gmail.com X-Host-Fingerprint: 209.85.220.223 mail-fx0-f223.google.com Received: from [209.85.220.223] ([209.85.220.223:43294] helo=mail-fx0-f223.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/44-18647-8642D4A4 for ; Thu, 02 Jul 2009 17:19:38 -0400 Received: by fxm23 with SMTP id 23so417401fxm.40 for ; Thu, 02 Jul 2009 14:19:33 -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:content-type; bh=d0QpS68A510seUVr/m5fbJVT20S5fKCUoKr417H34bU=; b=QNsvp884EE+I80k33dqsqfi0vrnSdtEU54xdmlw9oxiHyy8Adr+zHR/roSLfVsZLnX hhw6DELXR9eV9a16JmB9lO6cmS50ZqY9yVTc51OXbU86A4L30Ob7kDMFA4tBNE3cj9ld CcG8o7xBaNJXioN/uBz+61Sks8+FnS6Gg/5II= 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 :content-type; b=ZELh5pnlVOH4yI6/Osx71X91juqcL2MkzyR0P+/KMQzhC3K4h1KbrgBps9jHBMoHw4 voD7GTiK6RAlP3+WhnRkLQUNgjkZ4pOTwXghXUIaWfpnv4PhiHyOrn0oUTGN9MhAaE6H Qvy4m7rtmGfoSBEpUXf/MGdaKzTuPZ07lJZ6g= MIME-Version: 1.0 Received: by 10.223.108.15 with SMTP id d15mr452984fap.62.1246569573775; Thu, 02 Jul 2009 14:19:33 -0700 (PDT) In-Reply-To: <4A4D2217.7040603@gmail.com> 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> <4A4D2217.7040603@gmail.com> Date: Thu, 2 Jul 2009 21:19:33 +0000 Message-ID: <8c35d7690907021419g4c9bea99l61a3f1b32fe3419f@mail.gmail.com> To: internals@lists.php.net Content-Type: multipart/alternative; boundary=001636c5a57ba1f871046dbf9804 Subject: Re: [PHP-DEV] Re: Flexible type hinting From: olafurw@gmail.com (=?UTF-8?Q?=C3=93lafur_Waage?=) --001636c5a57ba1f871046dbf9804 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Jul 2, 2009 at 9:09 PM, Ryan Panning wrote: > 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. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > function($quantity) function(int $quantity) STRICT type function(?int $quantity) Thought id throw it out there. Interesting discussion though. =C3=93lafur --001636c5a57ba1f871046dbf9804--