Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84714 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 582 invoked from network); 13 Mar 2015 19:56:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2015 19:56:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=kobrasrealm@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kobrasrealm@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.171 as permitted sender) X-PHP-List-Original-Sender: kobrasrealm@gmail.com X-Host-Fingerprint: 209.85.212.171 mail-wi0-f171.google.com Received: from [209.85.212.171] ([209.85.212.171:33588] helo=mail-wi0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/00-34457-20143055 for ; Fri, 13 Mar 2015 14:56:51 -0500 Received: by widfb4 with SMTP id fb4so14783867wid.0 for ; Fri, 13 Mar 2015 12:56:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=LtYqLGwWvTMDlpG0tpP2unxLz2hXUU2pP+E9YGcdUZ8=; b=RABIOaJZgwAY695YoehdF779rZR8hhX5uOOrVFP9CEPMq2a61ybasiQzH6el/x0np/ 18Eh0LYUC0RNgVfduKkt57IeqCLuv8edRuEaFfc5/TpfGoo/VsIwTdlqNyYeN1M7+lkD vzollCUmXo8VhnS53BTXkTRggDvWa0OHuVCKpGQqE3NycBtqpUnvOUJycCEeC2phKLgD jpBlw/+gRYPFKmIWeFGOu5Hhb1TdhVKp38d68KPnufHaM15Er60Gwxi5kYC5zib7nTWN BQ4Ve810HhyTcnTdMGjVvztc+9AMovNjISgEXiS0QmKdBYBIhsFAz4BEKLqtFZpSrr/m ZiFA== MIME-Version: 1.0 X-Received: by 10.194.85.46 with SMTP id e14mr97281534wjz.110.1426276290410; Fri, 13 Mar 2015 12:51:30 -0700 (PDT) Sender: kobrasrealm@gmail.com Received: by 10.27.212.6 with HTTP; Fri, 13 Mar 2015 12:51:30 -0700 (PDT) Date: Fri, 13 Mar 2015 15:51:30 -0400 X-Google-Sender-Auth: Y1QKN1LjP3Kzx7yZ9L2Rd43wRSI Message-ID: To: "inter >> PHP internals" Content-Type: multipart/alternative; boundary=089e0103eb52a43e50051130d3c3 Subject: Re: A plea for unity on scalar types From: scott@arciszewski.me (Scott Arciszewski) --089e0103eb52a43e50051130d3c3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Pavel_Kou=C5=99il wrote: > - It is a "setting" that changes the language's behavior; I don't > think that it matters whether or not it would be an INI setting or the > declare() one, because both of them are bad. > > It allows people who want strict typing to declare it on a per-PHP-file basis. An INI setting cannot offer this guarantee. This is required if weak and strict are to be both supported. > - It does not "unite different usages of PHP into a single group"; it > does exactly the opposite, splitting PHP usage into TWO groups. > > It also allows the two groups to work together rather than forking PHP into separate languages: PHPstrict and PHPweak. > - Once this dual mode would be introduced to PHP, there would probably > be no way of removing it later without massive BC break, once most > people would realize that it is really awful to have it in the > language. > > What is "really awful" about this? Moving forward, everything could move towards strict typing. I could see PHP 8 or 9 having strict be the default, if everyone wanted that. And then the declare() being deprecated and removed as major versions increase. Scott --089e0103eb52a43e50051130d3c3--