Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85036 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89619 invoked from network); 16 Mar 2015 12:07:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2015 12:07:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=j.boggiano@seld.be; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=j.boggiano@seld.be; sender-id=pass Received-SPF: pass (pb1.pair.com: domain seld.be designates 209.85.220.54 as permitted sender) X-PHP-List-Original-Sender: j.boggiano@seld.be X-Host-Fingerprint: 209.85.220.54 mail-pa0-f54.google.com Received: from [209.85.220.54] ([209.85.220.54:35500] helo=mail-pa0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 86/24-03331-887C6055 for ; Mon, 16 Mar 2015 07:07:37 -0500 Received: by pabyw6 with SMTP id yw6so63290988pab.2 for ; Mon, 16 Mar 2015 05:07:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=o7BIk7KpnXayjZutMVm2GyP+Aa1Ek4NcqQJREUJhAdI=; b=JQWMbLO4c/czQrxRItOcUaw/oEzOGiQ3zjtt2DtivPhQvioJsGDLugdnmtXIu4wuQm JnRQ0ryW4iIsbAHB7K/+yb516TduwIq7/Rtu1yZ+8HUsSoHvGBFJIBpm2iYj/34NOiup chhKTKGanMopistUBV2HUfHCwlPEHaqVzg5ZfDtKwx/JUhGym4Ngl7ZCLzW6EsW/09h8 TWCZbW3AisfREgiSAHIFUD5c3huUkaZJ3mLm2kXNpy+eRPibqfEAuEcfcltd3aUyh4R3 jzCNrPD5JROvOFVpyBP8FkLqbpKGol1hXDfgwPka2ccD4ozXfu2ijgIin8vvMHvM/9R0 /Zmg== X-Gm-Message-State: ALoCoQlH2HMFcQnIdh2wPYGOFcw2+MoD9vSzF1ux5GC0L7o6N1xZYsDAdWgwCWQI1f56QhgjSrFj X-Received: by 10.70.90.161 with SMTP id bx1mr63774191pdb.146.1426507653227; Mon, 16 Mar 2015 05:07:33 -0700 (PDT) Received: from [10.1.1.10] (114-198-71-68.dyn.iinet.net.au. [114.198.71.68]) by mx.google.com with ESMTPSA id mi9sm17116706pab.3.2015.03.16.05.07.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Mar 2015 05:07:32 -0700 (PDT) Message-ID: <5506C783.3020207@seld.be> Date: Mon, 16 Mar 2015 12:07:31 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: internals@lists.php.net References: <55066F07.80308@birkholz.biz> <5506794B.8090008@birkholz.biz> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] About declare(strict_types = 1) From: j.boggiano@seld.be (Jordi Boggiano) On 16/03/2015 11:49, Pavel KouĊ™il wrote: > it's similiar to the safe_mode though. Sure, it's not as bad as INI > setting, but the "intent" is the same - a switch changing how code > behaves. ini_set('memory_limit', 10); also changes how your code behave, but it's global so that can be problematic. die; changes how your code behave, but you can fix it if it doesn't do what you want in your file. Code has meaning and therefore code changes what the program does. I don't think that's really a problem. > When I talked about the Dual Mode with some friends who are userland > PHP devs (either current or former, because they switched to other > stuff), none of them called the Dual Mode a great idea. The responses > I got were mostly along the lines of "wow, this seems really weird" to > "WTF are those developers smoking". Everyone of them (sure, ~10 people > isn't really representative number) said that they think PHP needs > STH, but not this Dual Mode stuff. > > Seriously, think about it for a while - when some setting that changes > how code behaves was a good idea? All your friends can happily ignore strict mode and no sysadmin can enable it as it is per-file. Those of us that do understand it and might want to use it can do so, and if your friends eventually go beyond the "this seems really weird" phase (it *is* weird because it's an uncommon approach to have both strict and non-strict in one language, but that doesn't necessarily mean it's bad) maybe they'll want to use it too some day. Or perhaps they'll need to start smoking. Cheers, Jordi