Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84809 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46859 invoked from network); 15 Mar 2015 08:56:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2015 08:56:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.180 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.220.180 mail-vc0-f180.google.com Received: from [209.85.220.180] ([209.85.220.180:37816] helo=mail-vc0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/92-29489-72945055 for ; Sun, 15 Mar 2015 03:56:07 -0500 Received: by mail-vc0-f180.google.com with SMTP id hq12so10333671vcb.11 for ; Sun, 15 Mar 2015 01:56:05 -0700 (PDT) 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=j5HKb67lXb0xbFX4uZ5Ah+ycWJnchQUQWbu0VXv4R/M=; b=NL4tGB1LG9OJ2i1TTRZOR6DSKX1gADoqJdZLSBmJcOrwgd7NgCLasL4Yi8U7YZv9Z8 SUDA/fZspcn/k2yLeB9DTdEzhqp9swdfC2jstCje3Y2j+Sot8VwOTa7iEHMHKHPcmuCo S7D5qgLkTE9WqPXPlYDLI6CH+vwPmthuD6RyV+GK7jtvOmRyc8aMYxtmHCOC36eXNr/I EFSMf5qxVg3UkILOHxxV6tH2UAXAupDNFMRk4cFD1/q5fdRLYcdVZrRbnWIxZ09zCb7c tan2EqKpl/v9eX4BSzooHJ1d1/nP+RtzOM9WUpaitxX27j9XDUdGqLVCSycG+EAD+tp3 CuYg== MIME-Version: 1.0 X-Received: by 10.52.162.72 with SMTP id xy8mr58761710vdb.12.1426409765005; Sun, 15 Mar 2015 01:56:05 -0700 (PDT) Received: by 10.52.177.7 with HTTP; Sun, 15 Mar 2015 01:56:04 -0700 (PDT) In-Reply-To: References: Date: Sun, 15 Mar 2015 08:56:04 +0000 Message-ID: To: =?UTF-8?Q?Pavel_Kou=C5=99il?= Cc: Scott Arciszewski , "inter >> PHP internals" Content-Type: multipart/alternative; boundary=089e0162832658ef7c05114fe7b1 Subject: Re: [PHP-DEV] Re: A plea for unity on scalar types From: leight@gmail.com (Leigh) --089e0162832658ef7c05114fe7b1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 15 March 2015 at 08:42, Pavel Kou=C5=99il wrote: > Sure, per-file is better than ini setting, but better doesn't mean > good (because it is still a pretty bad approach). The ini setting at > least has the option to be turned off in code once everyone realizes > it was a bad idea (register_globals via htaccess, for instance), but > PHP would be stuck with the declare for a long time - this is not an > easily revertable change, once PHP ships with it. > The declaration is turned on with code. This is no different to changing an ini setting with code, except that it can't be configured globally in advance. Existing code is unaffected. I'm not sure where your "not easily revertible" argument is grounded. It's incredibly easy to add/remove declarations at the top of a file. The two groups (people who want strong typing and weak typing) will > not work *together* though. And it will be a nightmare for everyone > working on multiple projects from mulitple clients or so. > Pure FUD. Sorry but there is no evidence to back this up. PHP will IMHO never be strongly-typed by default. Probably. > The best approach to have some reasonable > type rules is to progressively "strenghten" the rules (as Zeev's RFC > tried to do so, but he probably did two steps in one RFC and that's > what people dislike about it?). You think the best approach is to progressively and continually break working code between versions? How is this approach acceptable ever? > I think that PHP's type system would > get to some "equilibrium" by this - people wanting stronger typing > would tried to introduce it and people wanting weaker one would > balance it and eventually there could be a point on which both sides > could agree on. > No, they would never reach agreement. I sincerely hope the Dual Mode RFC doesn't pass. I can't imagine the > RFC being good for the userland developers in the long run. Apologies again, but I think you don't really understand what is being proposed in this RFC. Proponents of strict typing get exactly what they want, they can develop their library or entire project in strict mode if they want, and if someone wants to use this project or library, but themselves want to use weak mode, _nothing breaks_. --089e0162832658ef7c05114fe7b1--