Re: [RFC] Change the precedence of the concatenation operator

From: Date: Sun, 31 Mar 2019 13:50:29 +0000
Subject: Re: [RFC] Change the precedence of the concatenation operator
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-105020@lists.php.net to get a copy of this message
> 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

« previous php.internals (#105020) next »