Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84740 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47875 invoked from network); 13 Mar 2015 23:11:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2015 23:11:52 -0000 Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 74.125.82.181 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 74.125.82.181 mail-we0-f181.google.com Received: from [74.125.82.181] ([74.125.82.181:34180] helo=mail-we0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/C8-34457-7BE63055 for ; Fri, 13 Mar 2015 18:11:52 -0500 Received: by wegp1 with SMTP id p1so1019308weg.1 for ; Fri, 13 Mar 2015 16:11:49 -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; bh=xrASrO4zCofzdI4xXbdqFEXTdVO+cfBWoy3T7M4f2WY=; b=f15y6DF8W3nRJlYvQFgx92b/YvkkmbKTwLGrQzkqcyOoKclyf6gQP2zzWy34ALd5jA w6VHGfq3I8q2LA6yj0FOSEemiuLIOOtNhSE1kXkfoAritSTbK9CLGX/88UfDSeFPUzhp k/ihrb/TRJaD/HkowDxOCYBNrM36k8zDG5R1PBicHCVf6aifldaqMcqPo/gRs3vQ8D67 D+ZDF4Zk2L3apvTEpLC8Xqp+2Q3yiG2nrnTsgJUbpYR445Ii32xTiiAWSX/xRXKN8iAd EPv9aSsrSkA1s8PuElzjOTHTrgqDw3pSgZMNsaXg2aSaID+pxix28IA0xX2+SaMf/Wn0 +bVA== X-Gm-Message-State: ALoCoQn3Fg1JsMBlArDYQFCU1gaROQiVeWlied0tLa90GowRcRRPvcgRj/625r1N2Zl5wD8ynQve MIME-Version: 1.0 X-Received: by 10.180.187.171 with SMTP id ft11mr58141841wic.0.1426288308835; Fri, 13 Mar 2015 16:11:48 -0700 (PDT) Received: by 10.194.192.202 with HTTP; Fri, 13 Mar 2015 16:11:48 -0700 (PDT) X-Originating-IP: [77.11.16.111] In-Reply-To: References: Date: Sat, 14 Mar 2015 00:11:48 +0100 Message-ID: To: Arvids Godjuks Cc: Philip Sturgeon , =?UTF-8?Q?Pavel_Kou=C5=99il?= , Anthony Ferrara , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c38e9cfef24d0511339f9c Subject: Re: [PHP-DEV] A plea for unity on scalar types From: kontakt@beberlei.de (Benjamin Eberlei) --001a11c38e9cfef24d0511339f9c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, Mar 14, 2015 at 12:02 AM, Arvids Godjuks wrote: > =D0=BF=D1=82, 13 =D0=9C=D0=B0=D1=80 2015, 23:01, Philip Sturgeon : > > > Pavel, > > > > On Fri, Mar 13, 2015 at 3:38 PM, Pavel Kou=C5=99il > wrote: > > > On Fri, Mar 13, 2015 at 4:45 PM, Anthony Ferrara > > wrote: > > >> > > >> 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 chan= ce > > >> 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 th= e > > > 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 probabl= y > > > 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. > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > That declare thing with the removal of block-aware declare(){} kills on= e > of the fundamental optimizations you can do for large PHP projects - > compacting most used files into one single big file and caching it. And y= ou > never had to care what the files are - just splice it all together and l= et > autoload handle the rare cases. With single declare statement I effectivl= y > have to scan all the code, remove declare statements and choose a mode > globally. Well, it might work for a small project, but in a big project > with multiple teams or even multiple vendors doing different parts.... > The same is true for namespaces, but Symfony for example works around it by introducing block syntax. You can just remove the declares, during concatenation, or move a single strict to the top. Also this is not a fundamental optimization (I'd argue never has been) anymore since opcache is in core of PHP since 5.5 > > At this point I have only swearing words for the proposing persons and > supporters. > It's magic_quotes and register_globals all over again, but this time you > can't fix it with some PHP code. > > You really had to fuck it all up for us, the userland developers, didn't > you? > > Sorry, but I now question the wisdom and sanity of most new PHP folks. > Because the old once see the danger and vote "no". And everyone just thin= ks > they act up. Well, you wrong. I will nit be surprised if they just leave > the project for good after this. This list gets pretty intense, but this kind of swearing and attack on persons is certainly not acceptable in my book. Like every feature, this is optional. --001a11c38e9cfef24d0511339f9c--