Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84719 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11333 invoked from network); 13 Mar 2015 21:06:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2015 21:06:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=pajousek@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pajousek@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.44 as permitted sender) X-PHP-List-Original-Sender: pajousek@gmail.com X-Host-Fingerprint: 209.85.192.44 mail-qg0-f44.google.com Received: from [209.85.192.44] ([209.85.192.44:44455] helo=mail-qg0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 15/C1-34457-55153055 for ; Fri, 13 Mar 2015 16:06:29 -0500 Received: by qgfl89 with SMTP id l89so29036763qgf.11 for ; Fri, 13 Mar 2015 14:06:26 -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:content-transfer-encoding; bh=0OaD2ozBxa2Z9RbW/YKI8gx41qr3JkZ8XiqAb2IwjKw=; b=Jj9udDDZ//+idobQsfzgS4yjjnN1UVmK7XwW1+FpS9t346N+z2XyOAHuihj2XWtLBz Vc3S+nINarO/ySYa0wWjaXBM5GzZ3lYbygdHjSOnmoe05LNOKatRBEkui+Oon1eNzoAs 414YQmnCxKhJNjISID//0hacT2EC/pNwbjUi4QSuPBCz7l2MDzaClyPbFZymX9rtG0nk UdA+KfzmcO5VY22nKfsuV/1HWRh9opMIeGKgKyAMC4Gdo7LCb3IJwOTHO2eh1JjgEXLo XpXf6gZuGOx1FpUYTOw+eA0rVDoAQucnjlrwpV2mlA3U+StYkb0A2R5xZiDWIvnqJVH3 x1Gg== MIME-Version: 1.0 X-Received: by 10.140.96.165 with SMTP id k34mr60079063qge.79.1426280786375; Fri, 13 Mar 2015 14:06:26 -0700 (PDT) Received: by 10.96.160.99 with HTTP; Fri, 13 Mar 2015 14:06:26 -0700 (PDT) In-Reply-To: References: Date: Fri, 13 Mar 2015 22:06:26 +0100 Message-ID: To: Philip Sturgeon Cc: Anthony Ferrara , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] A plea for unity on scalar types From: pajousek@gmail.com (=?UTF-8?Q?Pavel_Kou=C5=99il?=) On Fri, Mar 13, 2015 at 10:01 PM, Philip Sturgeon wr= ote: > Pavel, > > On Fri, Mar 13, 2015 at 3:38 PM, Pavel Kou=C5=99il w= rote: >> On Fri, Mar 13, 2015 at 4:45 PM, Anthony Ferrara w= rote: >>> >>> But for today, I firmly believe that the Dual-Mode proposal is the >>> only one that stands a chance of passing. I think it's the best chance >>> for the language, and it's the only one that tries to unite the >>> different usages of PHP into a single group, rather than alienating >>> users. >>> >> >> Hello, >> >> I see (as a userland developer) these problems with dual mode: >> - 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 does not "unite different usages of PHP into a single group"; it >> does exactly the opposite, splitting PHP usage into TWO groups. >> - 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. >> >> (There's probably more of them, but these are the biggest issues I >> currently have.) >> >> Regards >> Pavel Kouril >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > Hang on. This is not the time to nitpick things in various RFCs that > have already been answered time and time again. > > An ini setting would be insane because taking an app that works on one > machine and putting it on another would completely break the app. > Hello anything using Composer, hello any CMS, hello any system moving > to a new host that doesn't let you change ini settings, or you dont > know how. > > A declare statement in the top of the file changing how that file > handles things is hardly a problem, and is exactly how a lot of other > languages do things. Hello JavaScript. > > It seems like you didn't read anything now you're just saying "it's > bad" a lot. Please don't do that. Hello, there may maybe be some misinterpretation of what I'm saying, but I read everything from the scalar types discussions in the past 2 or 3 months, actually. I know ini setting is much much worse than this, but this is imho still bad - the "intent" is pretty much similiar (aka some directive that changes how code behaves); I've been saying that I disagree with this approach ever since the Andrea's first Dual Mode was published as a RFC and I feel I need to bring it up again. Regards Pavel Kouril