Re: [RFC] Change the precedence of the concatenation operator
| From: | Stanislav Malyshev | Date: | Fri, 29 Mar 2019 20:01:06 +0000 |
| Subject: | Re: [RFC] Change the precedence of the concatenation operator | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-105012@lists.php.net to get a copy of this message | ||
Hi!
> 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.
Changing operator precedence is usually a very bad idea, because it
tends to break code in random places that are very hard to detect.
Unless there's a huge reason to do it - and eliminating a couple of
parentheses is usually not - I'd stay away from such things. If you have
any doubts about precedence - just put the parentheses and forget about it.
--
Stas Malyshev
smalyshev@gmail.com