Re: [RFC] Deprecate left-associative ternary operator
| From: | Lauri Kenttä | Date: | Sat, 13 Apr 2019 22:12:36 +0000 |
| Subject: | Re: [RFC] Deprecate left-associative ternary operator | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-105269@lists.php.net to get a copy of this message | ||
On 2019-04-09 12:54, Nikita Popov wrote:
Inspired by Bob's recent RFC for concat precedence, I'd like to propose a deprecation and removal of the left-associative behavior of ternaries. Instead, explicit parentheses should be used: ...What about nesting in the middle part: 1 ? 2 ? 3 : 4 : 5 This is unambiguous and should be allowed IMO. -- Lauri Kenttä