Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82091 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3706 invoked from network); 7 Feb 2015 11:07:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Feb 2015 11:07:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.42 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.192.42 mail-qg0-f42.google.com Received: from [209.85.192.42] ([209.85.192.42:53420] helo=mail-qg0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/E1-27738-502F5D45 for ; Sat, 07 Feb 2015 06:07:49 -0500 Received: by mail-qg0-f42.google.com with SMTP id z107so9206677qgd.1 for ; Sat, 07 Feb 2015 03:07:47 -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=0WO7wFVWsW7vXmdX7iVr5T0FiWm42NQm1G9XpZFtoC0=; b=lD9PzHwJ5uYcHqKnREn5DMvUakn5UsCTO9W7MtBOclhx8cCEvVFzPm28OWDKYdxUQ0 3ig84AQSGvb85xQatKxyivTEk7zkMbXWcCsrKvNJJrGAKmuyIlT4EL7SKNKvg/q1lAd1 WPxUYib4mjkaoCDp19ba1G3xHqKalasJPEw2fU7C2WAPJny16yoTzP3dQPRPHEpcHYvs d0+80ZLlShDSiYH5OsvQoWHr6FmzW6wvJXXoN8LC03VzJk36i83OQbvK0jLg1tYA8SDS SeJGnkJ38zoNpuPuWJmJees4/JPXCAtsr1gqjdAujKIH/bSIoUXmmN196DEB5azkVJiX OqfQ== MIME-Version: 1.0 X-Received: by 10.140.95.179 with SMTP id i48mr17391805qge.4.1423307267183; Sat, 07 Feb 2015 03:07:47 -0800 (PST) Received: by 10.96.3.168 with HTTP; Sat, 7 Feb 2015 03:07:47 -0800 (PST) Received: by 10.96.3.168 with HTTP; Sat, 7 Feb 2015 03:07:47 -0800 (PST) In-Reply-To: <90.54.55814.B82E5D45@pb1.pair.com> References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> <90.54.55814.B82E5D45@pb1.pair.com> Date: Sat, 7 Feb 2015 18:07:47 +0700 Message-ID: To: Tony Marston Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11c16dfc111b4d050e7d8c5d Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: pierre.php@gmail.com (Pierre Joye) --001a11c16dfc111b4d050e7d8c5d Content-Type: text/plain; charset=UTF-8 On Feb 7, 2015 5:01 PM, "Tony Marston" wrote: > > "Stelian Mocanita" wrote in message news:CAMc0WS6+1Y-5yJW2s=mW+ynS6tN8M5iEaXe10MWnLrL0_dZUMg@mail.gmail.com... > >> >> On Fri, Feb 6, 2015 at 12:57 AM, Andi Gutmans wrote: >> >>> The folks who really want all this great strict typing should head over to >>> Oracle.com and download free open-source Java? I hear it's got a lot of >>> strict typing features in it. Only downside is that it'll take them 10x >>> longer to complete their projects. OK sorry. Had to say that :) I realize >>> it's not the same... >> >> >> Sending people who want to have more structure in the language to Java >> is downright bad, not to mention that it sounds completely dictatorial. I >> would just put that in the next Zend newsletter to make it clear for your >> customers that there is a saner option. >> >> Stelian >> > > It is not as bad as saying "PHP has been weakly typed for the past 20 years, but PHP 7 will be strictly typed, so every developer will have to change his entire codebase in order for his application to run under PHP 7". If you are one of those who "cannot" program in a language which doesn't have strict typing, then why are you using PHP in the first place? Why aren't you using Java as Andi suggested? > > If you want to change the typing mechanism in PHP then remember that it *IS* weakly typed whether you like it or not, and will always be so. If you want to introduce strict typing then it must be optional, and it must not interfere with any of the existing PHP 5 applications. Tony, I had to resist not to jump into this but here we go. Please double check the RFC, what it does, propose and its impact by default on existing codes. Call it doing your homework. Then reconsider your reply. --001a11c16dfc111b4d050e7d8c5d--