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

From: Date: Thu, 28 Mar 2019 14:04:50 +0000
Subject: Re: [RFC] Change the precedence of the concatenation operator
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-104981@lists.php.net to get a copy of this message
Hello, On the one hand - seems logical. On the other hand - makes things less clear when reading the code. With parenthesis, the code is made explicit, so you treat code like given in an example as a code smell. I'd encourage people to always use parentheses. But overall I'd say the change makes sense. чт, 28 мар. 2019 г. в 15:33, Bob Weinand <bobwei9@hotmail.com>: > 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 > -- Arvīds Godjuks +371 26 851 664 arvids.godjuks@gmail.com Skype: psihius Telegram: @psihius https://t.me/psihius

« previous php.internals (#104981) next »