Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105020 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 47573 invoked from network); 31 Mar 2019 16:56:03 -0000 Received: from unknown (HELO mo4-p00-ob.smtp.rzone.de) (81.169.146.163) by pb1.pair.com with SMTP; 31 Mar 2019 16:56:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1554040241; 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=9m/yv3NTs0wIEefr4jWVqvyASnb8s9hdCN9kazj/VWc=; b=F6SKkn8oBM4mO0w504Pi0BScKiirPzFL7WaslbLGS4n/Bhy6qcdVwvHwJ1NdopMMQE 6wSJ2PTIhFNpB73IjR+TY7SXMzKTXW/Z9SZdzGcxqKKI+ryoINNC6QGShHym69cllVgw AzOj2oJNVFduh0b/lz6k1REkTAhSFFXz6gsj4q1vsQUKlAZqLZ9Rot7x3V0Wvj7ja41e WJRiRmnrYAb06QZqlex2TYgOs69+dowqdoRwvV2ISgeuc0OjBAPRn+h1pb+oj55qZDVR xLttgvJTBuJpvkGoJoSFpM5xUt/pDP/2JJrwNnb9QM8CyL50Ccm/NoLgHzm7OG++VvLJ 3mWQ== X-RZG-AUTH: ":IWkkfkWkbvHsXQGmRYmUo9mlsGbEv0XHBzMIJSS+jKTzde5mDb8AaBMcZiElcA==" X-RZG-CLASS-ID: mo00 Received: from mail-pg1-f169.google.com by smtp.strato.de (RZmta 44.18 AUTH) with ESMTPSA id Z06038v2VDofR0q (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 ; Sun, 31 Mar 2019 15:50:41 +0200 (CEST) Received: by mail-pg1-f169.google.com with SMTP id q1so3387071pgv.13 for ; Sun, 31 Mar 2019 06:50:41 -0700 (PDT) X-Gm-Message-State: APjAAAUdw6j2Q0Jk9YVuwbuBKbRNbtH3OS6WTAe/yN1DmQ82iYHB4z33 GaFtGiGUnTu5DY4ChM9tVMUctKDH+EM8EpxNKtQ= X-Google-Smtp-Source: APXvYqxCSeGTpffvY5WB+eDWR7altgksSwPrj+SmELVNPC3X3aSL0GPrMKaIUQ0udEju6wPDUCDpnhX3snP2LCSHco4= X-Received: by 2002:a63:ed0a:: with SMTP id d10mr11685543pgi.452.1554040240625; Sun, 31 Mar 2019 06:50:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 31 Mar 2019 15:50:29 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Bob Weinand Cc: 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) > 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 Hey Bob, if we decide to do this, there should definitely be a deprecation notice in 7.4, I wouldn't even add a vote option for this, but make it part of the primary vote. An alternative to prevent mistakes in this regard is making this a compile error and requiring parenthesis. Regards, Niklas