Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105442 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 82335 invoked from network); 25 Apr 2019 12:51:10 -0000 Received: from unknown (HELO mail-it1-f180.google.com) (209.85.166.180) by pb1.pair.com with SMTP; 25 Apr 2019 12:51:10 -0000 Received: by mail-it1-f180.google.com with SMTP id w15so11225920itc.0 for ; Thu, 25 Apr 2019 02:52:02 -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=2jlFjTZHHLSHBUkh6bNWxggPnyh5cTdfaBGHzraQNaM=; b=C6d+WnUvgcehrOyjkQgO3glYoDKKZzjt3Izrvl5wMjOLMU53KcnCWKIbFAkDZpE7ep xHqHRAzo8jHV4CwfT2itB6jRzjlXa5DSsfQYoRXs5ReXRpETGF7K4VnFWhsZgfMOeYbO YZRKAB6s8JJN+joYIIIGeywR/WWaHvwlsiGkguGbmU4s3EefvpstZ6NfRcOujnSdNuRp dJVbBCKjzpYrp8K+oCrXAqtkozpuCifgRvea9K10p3I2OD8ZxnKyJmmWQcugS/X//GXj pufE1j3OaKNPbM8jO5d8lh6gOX8ipv53q5G3Mm/jgblZPBAXwBwManhaV+9dUTyZ4oOG soTQ== 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=2jlFjTZHHLSHBUkh6bNWxggPnyh5cTdfaBGHzraQNaM=; b=t4De1LsUrKtoMjAzwAhF3nSxAWdESqlHjwnJu4GzEYnyKltKELFngh783G+vMhiI29 0d4Inuqkr422Ru1y/yL1sYrNZEV+17WBWfxbUByQxc61uP/heM79Dhw6zb6GVwNQD2/9 JHzJAeCZ+9RN53wW9GLyN0laVzg/UOV6o5GOUXAZuJLbnupnb2HZXY2D/Z+rP28HETWH cdBXjXjTR6OKSJL91+EiVDtQMrZd4rGf0srierx5aIRSRn4ybZMoj42foid01QOPZ7mt w4Sizr9D7SLtUcV35O37AZDgIV1+FMj6put9KYg44jZJu3zNtB8ihgVacpwQ8zJy4WpB GtbA== X-Gm-Message-State: APjAAAUzodc1q/vFFxd41zASpUk4A2cv1+zhHlNqSDuTxT0ER8vG//bN JEM7kPVUu2PywwE1oUrS1x08DI1eCCvBjI1meHQ= X-Google-Smtp-Source: APXvYqwbX8tvDASuh1QaexqE3/3S04lUqSeBfaPzNlR2+Nj7XUWngwxXBcw+vxVCrt8tWs/DTVKa1uiKBDJPS7r3/dI= X-Received: by 2002:a02:3f2b:: with SMTP id d43mr24444614jaa.36.1556185921393; Thu, 25 Apr 2019 02:52:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 25 Apr 2019 11:51:43 +0200 Message-ID: To: Bob Weinand Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000000c9aa1058757c5d6" Subject: Re: [PHP-DEV] [RFC] Change the precedence of the concatenation operator From: nikita.ppv@gmail.com (Nikita Popov) --0000000000000c9aa1058757c5d6 Content-Type: text/plain; charset="UTF-8" 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 --0000000000000c9aa1058757c5d6--