Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105512 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 52161 invoked from network); 29 Apr 2019 21:16:52 -0000 Received: from unknown (HELO mo4-p00-ob.smtp.rzone.de) (85.215.255.22) by pb1.pair.com with SMTP; 29 Apr 2019 21:16:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1556561929; s=strato-dkim-0002; d=kelunik.com; h=Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=jrHMORFk/DY3EUkk/50wnv8mqdwist39rCDsHA64WUk=; b=H3UQoVchMuCRkY++zOkpGOzWVTRjQIbnf9rLihb3yo1TZnRmP+B2Dz35Ke6xPsZcUh l9a7XnNHNODliyhoWF+phPm9hZRiJOI9qlwWwg9Zu4XpvoxQkmea0I7vXnMN9M72h33K BzA2+XR1ktQzBBg/KcMRdMiAVcOMO3KL7nzsvnpmCLyPkQSXc3Ijkun2HtKacbIslGBx lcsA8qrP0TCPA6J5FXoAheptbUyyeX81c5UCwtYE1tvZ3wtSDF+n6kiKxtAtA6yqc8JI godVgeXBBHJ1ex4ozF4yWQDhrXMoYMLYbYkOeLuNpi7IKuxTBEvZf9gzForfOYaJesqX aXbA== X-RZG-AUTH: ":IWkkfkWkbvHsXQGmRYmUo9mlsGbEv0XHBzMIJSS+jKTzde5mDb8AaBMcZi8scA==" X-RZG-CLASS-ID: mo00 Received: from mail-pg1-f180.google.com by smtp.strato.de (RZmta 44.18 AUTH) with ESMTPSA id D06319v3TIImUmO (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp384r1 with 384 ECDH bits, eq. 7680 bits RSA)) (Client did not present a certificate) for ; Mon, 29 Apr 2019 20:18:48 +0200 (CEST) Received: by mail-pg1-f180.google.com with SMTP id c13so4573901pgt.1 for ; Mon, 29 Apr 2019 11:18:48 -0700 (PDT) X-Gm-Message-State: APjAAAUyum9ZsXu8C7B8FGWynWNT8sVs1fP0aJm63otW8ZsM7Wiv/hyG kS8QHopWL6MBKQqNmdxsy4z9lrx9qKY+bQtby2U= X-Google-Smtp-Source: APXvYqxsGWE/O3sRJ9SN3hzrYJUZkapQEvGTrZWxDuBTiek+BwEXYZkEDPxxKIKNS1dR/gKVg0t/uf0Rhx6pArrhM2M= X-Received: by 2002:a63:dc50:: with SMTP id f16mr60991681pgj.396.1556561927868; Mon, 29 Apr 2019 11:18:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 29 Apr 2019 20:18:36 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Bob Weinand Cc: Nikita Popov , PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Change the precedence of the concatenation operator From: me@kelunik.com (Niklas Keller) Am Mo., 29. Apr. 2019 um 09:03 Uhr schrieb Bob Weinand : > > > Am 25.04.2019 um 11:52 schrieb Nikita Popov >: > > On Thu, Mar 28, 2019 at 2:33 PM Bob Weinand > wrote: > Hey, > > I feel like concatenation having the same precedence than addition and subtraction is promoting programmers to make mistakes. Albeit typically easy to catch ones, it is a quality of life change at least. > > Hence I'm proposing a RFC changing the precedences: > https://wiki.php.net/rfc/concatenation_precedence > > Bob > > Similarly to the ternary associativity RFC, I've analyzed the top 2000 composer packages and checked whether they would be affected by this change: https://gist.github.com/nikic/a4df3e8e18c7955c2c21cf6cdb4cbfaa > > The tl;dr is that there were 5 instances where behavior would change per this RFC, and all 5 of them are bugs in current code and would be interpreted correctly after this RFC. > > Nikita > > Thanks for the analysis, > > Given the confirmation that the impact is minimal (rather beneficial), I'll add this to the RFC and start voting tomorrow. > > Bob Maybe we should have a longer timeframe and deprecate in 8.0 and change precedence in 9.0, similar to how it might be done with ?: changing to non-assoc in 8.0 and maybe right-assoc in 9.0 or 10.0? Should we have a secondary vote for that? Regards, Niklas