Re: [RFC] Deprecate left-associative ternary operator

From: Date: Wed, 24 Apr 2019 23:48:38 +0000
Subject: Re: [RFC] Deprecate left-associative ternary operator
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-105424@lists.php.net to get a copy of this message
On 24.04.2019 at 19:25, Sara Golemon wrote: > On Tue, Apr 23, 2019 at 3:56 AM Nikita Popov <nikita.ppv@gmail.com> wrote: > >> 20 years of code in the wild has not "accepted that fact and moved on". If >> a left-associative ternary is used, it is almost certainly a bug. If people >> use this structure by accident (because it is familiar from other >> programming languages), I'd like them to get an error instead of having to >> figure out why their obviously correct code is not working or, in the worse >> case, just leave behind buggy code. > > I'm on dismal wifi at the moment, else I'd do some searches, but do you > have any examples of code in the wild subject to this bug? > I agree it's a lousy state, but it's not emergent. See <https://externals.io/message/105345#105389>. -- Christoph M. Becker

« previous php.internals (#105424) next »