Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58822 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 189 invoked from network); 9 Mar 2012 14:34:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Mar 2012 14:34:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qy0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:48022] helo=mail-qy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/FE-10820-CE41A5F4 for ; Fri, 09 Mar 2012 09:34:22 -0500 Received: by qcmt36 with SMTP id t36so1270177qcm.29 for ; Fri, 09 Mar 2012 06:34:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=zXwSIx6xi/Xjz4pSPxfjXHtbp2f+Zmp1ZnQ2AoFynmA=; b=cE4zUXnFwIyp6xf8bE2LetP3EpHMKdijF/3Srvy65uAUlBh5vU7XZmIVRGHvseFOfF tnDXJXKtCn1OUTcGm0Ez9McF0HtkRYn+DJF9diWlhYLbk3VMcMdHMtdiIYpyts0jHRKT KyxW1x9OZ6rDe0hJi6hHWfYj2enhfbsLAISRoqcgtzYMxFdkiNIxWhbnWOTplnwHiP8E sNTtZNBF6m22NFkwimxd6ARbvbIo5VcWqfJrPincodsVyJYFAWmGceQYvM9Vc/aiz1ey OR06AAhAfz2AHE5IOcTAxrxvZkybPGGbw6Ff+y4Iwz5/gKAR6crxQTl1ZjDkTE1Kww5c dkiA== MIME-Version: 1.0 Received: by 10.229.76.149 with SMTP id c21mr249724qck.5.1331303658064; Fri, 09 Mar 2012 06:34:18 -0800 (PST) Received: by 10.229.49.74 with HTTP; Fri, 9 Mar 2012 06:34:17 -0800 (PST) In-Reply-To: References: Date: Fri, 9 Mar 2012 09:34:17 -0500 Message-ID: To: Lazare Inepologlou Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [POC - Patch] Scalar Type Hinting - A-La zend_parse_parameters From: ircmaxell@gmail.com (Anthony Ferrara) Lazare, On Fri, Mar 9, 2012 at 8:54 AM, Lazare Inepologlou wrote: > Yes, like that, only better. Since automatic type casting is central in PHP, > as this is evident after all this discussion, I believe that it should be > better supported. There are two thinks that I would like to see here: > > 1. No more magic methods, please. Any particular reason? If the magic is useful, why not add the ability? I'm not saying we should get to python level with the shear number of magic methods, but to artificially limit when useful behavior can be added... I'm not so sure... > 2. It should cover (eventually) casting to and from any type. This doesn't? What other types (except from other classes) would you like to see (or could we do besides resource and null)??? Anthony