Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105582 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 96629 invoked from network); 3 May 2019 19:48:07 -0000 Received: from unknown (HELO mail-oi1-f194.google.com) (209.85.167.194) by pb1.pair.com with SMTP; 3 May 2019 19:48:07 -0000 Received: by mail-oi1-f194.google.com with SMTP id j9so4180247oie.10 for ; Fri, 03 May 2019 09:51:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zXByCfFwDAgdfJiapeSvrMg0LSN2sCAJeKOY7WtR3zs=; b=G28KlrkYHBBZdvBw2aU1RQjzdsqdHAQhN+DucGH0XshmZc9GEVVYpjDQxsGBlCJ3te F2UE72iSSmhHJHOSMgF3d4Ygi0I1HgsCXKpbdVWCCB6VVNg3l/FDtl6wEm7kBaTILkRl faFLFyCOXIpceC2zZj1uxuHVvTzgh99DWZ+S7t/30H94TqYN/XJDO7EzxpGyzGftsGjk Kj90yEB/Xxv/dzjpD7R9NP20b81eJrl2lb8BdQQ325vCvd9M5iazbAnFQ7ykz88OPTqA 5wp7Qo8bVjw9fSE2Azy2FBgJuMP2bYjKgsXOFnjhRjlbv/OaSZwbkDRkPaxv0SVECxuk s3Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zXByCfFwDAgdfJiapeSvrMg0LSN2sCAJeKOY7WtR3zs=; b=BtlzgtFeiPqP9YSMtlbybBEHzk1Iz5dzjO1eMYB4vdDvl/WPk+3iC6UQn3JNdrMc35 P2i27Shvhz9YnjPwvglGPW6xUC8CrzDaeXD+Wz1NE++0bxAaKe53+m+GW92GJernuSpx fLr+AznN3dbztoy685QEpuvJIRP/6T+kjJ2sXLzope8LXVcRQZIERXF/j26fJt7Fjd7m 9NoJcD/LNzCQ8TEt1u2d3Rb3hZ96NyvfMKZB+EsQVfv4q4yq0oYtf5kkrHzMqyyMtlp6 bnlGqS3bvQqeax0aQ8tOTUM52FnwMfC7egeefQAQGnDrywf+jCq5doG5jH9ZRA7X1awq Uhiw== X-Gm-Message-State: APjAAAXd//tTukRi8g1OuHx6eBSgR5XmGOU+sdtt9K2Zzv4GNUOEtuZO JUy5nDR4g2vhGuXMcehlultchMHfBxWwPM5ehpY= X-Google-Smtp-Source: APXvYqwGsZ2cpyA8uWOKmn29ZL/ki0mcVMHed2bywql07wib6DGetuC8iBd6H27mf3NIpIL5iWrj57q8OQRZDA4BZ3o= X-Received: by 2002:aca:5313:: with SMTP id h19mr6565589oib.172.1556902262769; Fri, 03 May 2019 09:51:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 3 May 2019 18:50:51 +0200 Message-ID: To: Niklas Keller Cc: Bob Weinand , PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] [Vote] Change the precedence of the concatenation operator From: peterkokot@gmail.com (Peter Kokot) Hello, On Fri, 3 May 2019 at 16:19, Niklas Keller wrote: > > Hey Bob, > > in the RFC you mention: > > > While this is a subtle behavior change in that it will give different outputs without notice or warning, it is trivially possible to statically analyze the code and find all instances where this happens. > > On the other hand, there's: > > > PHP 8, with a deprecation notice in PHP 7.4 upon encountering an unparenthesized expression containing an '.' before a '+' or '-'. > > So there will be a notice if the second vote passes and the output > changes in PHP 7.4. > > Regards, Niklas > > Am Mi., 1. Mai 2019 um 00:41 Uhr schrieb Bob Weinand : > > > > Hey, > > As announced yesterday, I'm now starting the vote on this RFC. > > > > I'm confident that the impact is really that minimal that a relatively quick deprecation and change path is preferred. > > > > https://wiki.php.net/rfc/concatenation_precedence > > > > The vote ends on May 15. > > > > Thanks, > > Bob Thank you for the RFC. Apologies for not responding here sooner. I just want to point out one thingy here also (that is becoming sort of a pattern recently and also because this has been pointed out at another RFC that is causing issues with some people, yet no issues here). The removal of some feature (which causes a BC break) in PHP 8.0 should always emit a deprecated warning if that is possible to do on given time in the code or to detect this feature. We could say that situation is completely similar to the removal of the short opening tags. If there is something to be removed or changed with BC break effect in major release, the deprecation warning is self-evident and therefore I'm not sure why the additional vote here. Because again, an edge case scenario we could get a changed functionality in PHP 8 and no warning in PHP 7.4. Just as an example and a bit of an additional info how the upgrades from minor to major releases can go smoother. Other than that, all looking good and thank you for your work. -- Peter Kokot