Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85035 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87778 invoked from network); 16 Mar 2015 12:04:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2015 12:04:35 -0000 Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.160.179 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.160.179 mail-yk0-f179.google.com Received: from [209.85.160.179] ([209.85.160.179:35353] helo=mail-yk0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A2/C3-03331-2D6C6055 for ; Mon, 16 Mar 2015 07:04:34 -0500 Received: by ykfs63 with SMTP id s63so16586611ykf.2 for ; Mon, 16 Mar 2015 05:04:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=S15CXX4YEf+wBHNiOP89MT8f017JZ+kxwaKiiL9nPE0=; b=FsnjLv0FEXiRrmN2XBI8j+CmTPPHI6pnh3Tx76fPaRNu9NFjY9dq9kP8rwizQEvF2t Qa2fzyEgtuLl54vrCrEYLvuc3wEGW2qMTfMXzc03c68AlxsKLK97mlWXofvN7Kqnwpv/ U+pMyltje8CD2Gt5sy1oiPTilcaY0ZjQlmBx08mbFSJdyA8/IWkflZXfmWGwCfdopFmX TrVWrF5h0GwAqv8CEsFas0ARz2pxVbQbMW0iCe2VXX6qz+9a/XtnRQWjvoDXwJZm4Rvh L3/DMwgjrn6ea6lP/JUI2+VPPMHb17SUUr6sY0fd76+iLp2wqfCv9ayObm1fb/JPdfvR m/KA== X-Gm-Message-State: ALoCoQkr5unGRAkh6zqI276xv6ENuq4B7O6neUWpyuUeQmR67RfSjQRoiHomQLhK9k1eretZ8gfR MIME-Version: 1.0 X-Received: by 10.236.216.49 with SMTP id f47mr59779558yhp.158.1426507471431; Mon, 16 Mar 2015 05:04:31 -0700 (PDT) Received: by 10.170.71.86 with HTTP; Mon, 16 Mar 2015 05:04:31 -0700 (PDT) X-Originating-IP: [78.147.4.32] In-Reply-To: References: <55066F07.80308@birkholz.biz> <5506794B.8090008@birkholz.biz> Date: Mon, 16 Mar 2015 12:04:31 +0000 Message-ID: To: =?UTF-8?Q?Pavel_Kou=C5=99il?= Cc: Derick Rethans , Pierre Joye , PHP internals , Dennis Birkholz Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] About declare(strict_types = 1) From: danack@basereality.com (Dan Ackroyd) On 16 March 2015 at 11:49, Pavel Kou=C5=99il wrote: >>> > > Seriously, think about it for a while - when some setting that changes > how code behaves was a good idea? The problem is that there are two irreconcilable camps - some people want weak STHs, other people want strict STHs. This RFC gives both camps what they want, at the cost of having the dual mo= de. I personally would prefer a single mode, with strict STHs but I can see that would piss off the other camp. And so to me, this RFC even with the ickiness of the setting, is an an acceptable cost to giving both sides what they want. Oh, and people who don't want to use scalar type hints at all, can still continue to not use scalar type hints, and their code will continue to keep working. Anyone who is voting no, isn't doing so because they are missing out on a feature, they're doing it to block other people from getting what they want in PHP, which is just a terrible way to vote. And if the strict camp are wrong and strict scalars are just not used by a large proportion of the PHP community, it would be trivial to remove support for the strict mode in a future version of PHP, as all code that runs in strict mode, will automatically work in weak mode. cheers Dan