Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105429 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 22298 invoked from network); 25 Apr 2019 03:26:37 -0000 Received: from unknown (HELO mail-qt1-f169.google.com) (209.85.160.169) by pb1.pair.com with SMTP; 25 Apr 2019 03:26:37 -0000 Received: by mail-qt1-f169.google.com with SMTP id g4so3137607qtq.10 for ; Wed, 24 Apr 2019 17:27:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3dj/g2VMC7RWCmkN8sK6v2BRHyFXj7s6bdrbrGVofYA=; b=lMF69f5byGAtO+0sn7pKg5lGDMrMlGQUVNNXuuvN87Zqoa5ISvW05DjzUek2DI/HH6 4rgsKThcKJPgMUXQdlguXqIcDZiiWgf+yYCffZBZl/qshCKqrO2eLmuHVr5890lY/BBe z7ei+lCShVXDKnVlcXKq1pdxCiNMoYYEEjxMOMpJGi67rgLkNDTNqRxeVV7JS+J/F7AC puyQJ2QEHBN8RC6zWbzXXOJOg5uBqHnomkNlhrVAkU9zdWv07FBK6J0sLkkfZamIlnQo p2bzFOP5URLKkixbiwkEyLdhhXrL9iIT7Tmk/fMuVOLtRZgbb+NHL+nH6Dy+d+u5RawX h8dQ== X-Gm-Message-State: APjAAAUpUNQIuTJO3m5iFTU10m8rsj1TZpxuSCJ7PCkLKEfbZulWGP/u 8AsxYMAIuI9fYtGZBBN5M2BkdZuX90abZZub1HLvhQ== X-Google-Smtp-Source: APXvYqwQ4xyNmNVQdcQil4JGjnHtO7zQDmiTKKLZx8krS9IGUTIR7n9Kv6ZJl7PSoDgQC9r2vuHfct/Wgpl+eRChI0I= X-Received: by 2002:a0c:b585:: with SMTP id g5mr28624192qve.220.1556152042344; Wed, 24 Apr 2019 17:27:22 -0700 (PDT) MIME-Version: 1.0 References: <9ecb9058-9a71-adae-6342-efb1fa15a6ce@gmx.de> In-Reply-To: <9ecb9058-9a71-adae-6342-efb1fa15a6ce@gmx.de> Date: Wed, 24 Apr 2019 19:27:11 -0500 Message-ID: To: "Christoph M. Becker" Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary="000000000000b382ea05874fe110" Subject: Re: [PHP-DEV] [RFC] Deprecate left-associative ternary operator From: pollita@php.net (Sara Golemon) --000000000000b382ea05874fe110 Content-Type: text/plain; charset="UTF-8" On Wed, Apr 24, 2019 at 6:48 PM Christoph M. Becker wrote: > On 24.04.2019 at 19:25, Sara Golemon wrote: > > > On Tue, Apr 23, 2019 at 3:56 AM Nikita Popov > 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 . > > Okay, so the most compelling part for me in this analysis is the fact that Symfony and ZF have issues. I can shrug off a lot of questionable PHP coders, but i have to acknowledge major frameworks stumbling on this gotcha. Convinced. +1 -Sara --000000000000b382ea05874fe110--