Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58740 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90163 invoked from network); 7 Mar 2012 13:23:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2012 13:23:39 -0000 Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; 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:36224] helo=mail-qy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/A1-15180-B51675F4 for ; Wed, 07 Mar 2012 08:23:39 -0500 Received: by qcmt36 with SMTP id t36so3730160qcm.29 for ; Wed, 07 Mar 2012 05:23:37 -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=W7AeGwj3xo27nbtOfvoc2FKf2itAH9M8nzXCHHt4Rr8=; b=P6eurwVPpHa6SpfsadKDuhsHuJ+iBRnRybc/Yhj5loNAhPHhBLowO6+f4urLZ9q1yk F7BRBgdQe5CakGpGto8HmUQhgoc73SxYtP6mAm5QvhWOGhtmf77hfs91OuCD+ZF838F0 yDwS1CvBccL3u8FrxQDCUZVpZj2U3VBpkNKD6yfevkdPK1j2nvgsb0i1x2iFCIoLbnwN oUrz0EKZLIeFD0UtXAimcCJmcOfHFUw8SiugiPhM6U/arLIx4YKOCVv/1n2+QH7cgyn9 tR9R9HoTeWEhYFbmvEGeN1EazXSDEtVoLJ7Fp6l/oUAMS/KZ85GhJFeTf4raKMc7Hktw SbSw== MIME-Version: 1.0 Received: by 10.229.135.141 with SMTP id n13mr315408qct.25.1331126616927; Wed, 07 Mar 2012 05:23:36 -0800 (PST) Received: by 10.229.49.74 with HTTP; Wed, 7 Mar 2012 05:23:36 -0800 (PST) In-Reply-To: <60744d7ea642fe03c7110502a3f4276a@mohiva.com> References: <52.38.15021.3A1E65F4@pb1.pair.com> <4F570EBB.6030103@sugarcrm.com> <60744d7ea642fe03c7110502a3f4276a@mohiva.com> Date: Wed, 7 Mar 2012 08:23:36 -0500 Message-ID: To: Christian Kaps Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Scalar Type Hinting From: ircmaxell@gmail.com (Anthony Ferrara) Christian, On Wed, Mar 7, 2012 at 3:22 AM, Christian Kaps wrote: > Hi, > > I'm with Stas here. > > First let me say that I would like to see type hinting for scalars in PHP. > As a userland developer it would help me to write clean and more robust > code. But I think this proposal is only a workaround to get a round the main > problem. It's a try to push similar functionality into PHP without breaking > BC. I think it's the wrong way. Again, the lack of a BC break is a side-effect of the main limiting factor which was to allow for stricter checks in the future and keep some semblance of a sensible syntax (having foo(int $foo) allow foo("5") makes a lot less sense to me)... > Anthony, You addressed one of the main issues in your last post. > > >>> Again, I personally see casting data-loss a bigger issue than just >>> parameter hinting, which should get its own RFC to clean up. That's why I >>> didn't include it here. On purpose... > > > Why not try to change this first? The simple reason, is that I was under the impression that one or more devs were writing that proposal. I was going to let them. If they have stopped, or want my help, or want me to do it, I'm all for that... Thanks, Anthony