Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82085 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90169 invoked from network); 7 Feb 2015 10:01:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Feb 2015 10:01:49 -0000 X-Host-Fingerprint: 80.177.120.119 marston-home.demon.co.uk Received: from [80.177.120.119] ([80.177.120.119:18960] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 90/54-55814-B82E5D45 for ; Sat, 07 Feb 2015 05:01:49 -0500 Message-ID: <90.54.55814.B82E5D45@pb1.pair.com> To: internals@lists.php.net References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> In-Reply-To: Date: Sat, 7 Feb 2015 10:01:39 -0000 Lines: 2 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 X-Posted-By: 80.177.120.119 Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: TonyMarston@hotmail.com ("Tony Marston") "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 Marston