Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105407 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 11922 invoked from network); 24 Apr 2019 21:56:00 -0000 Received: from unknown (HELO mail-pf1-f179.google.com) (209.85.210.179) by pb1.pair.com with SMTP; 24 Apr 2019 21:56:00 -0000 Received: by mail-pf1-f179.google.com with SMTP id z5so9782416pfn.3 for ; Wed, 24 Apr 2019 11:56:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=G5dHwxEHI02XfCxaiR+0YgUuE0NYxralflbDUdz2HvM=; b=UzYyiEgFpz9LTldqzXnQ15nyuuknAv67xAD8ZbGOS/gd8A1WZ1+fJidCvKBOENh1B4 tROKjGGoXkbB+vtxpVGQdRmzjK88eJjoCpeUM0TmUdwpjpbh0magnUysITChMw3uCZuu /05M+RKB38xW+MLBg9whlRO6K8WsAo5BzTsJJo4sKLaNgDJ3LsVuCv++60gF1fHffnD0 uc1acC/D8KONz5x0KR8wG0PgyVLr578sZkZzjw1fz7ZGEHzH+X0GqVG6rD9DGtPvce3U b881UTubXd8vQSETTwEoKKpGXjDLhHG7uendt3LAg2KNK1/SI/AKSpzEyyzpinbCzfAy yp7Q== 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=G5dHwxEHI02XfCxaiR+0YgUuE0NYxralflbDUdz2HvM=; b=XxRRMl/0ofnF0+Ve5rThDU9eTwxHRVywp6dMUoQZEjKw+lj+KuVYCCE1C1CHYYl0VX 54lQz+6xjpOQLZvVDVHEUKO3ZKz2INSJmgODnSwYGyx2GTM8mABrv6C6wV9R0gbu2AMG CdsrjrV9P75024gJ+H4INx/EZ5dgTmZ1a/2zPb5nVskkvQFjs3jvZKIOdIAWMS4hC5ki 48j7pQ01cTi5OaWiSAzR+GxRouta9nBnkm+AjOYhT3sE5MpJ96uDZSF7slOQ9rZu7fvK XiUWl5CZM32PFbBcOrooK0C5wY/wibzFcfzFV0Wsh4OK+iWcp3mZJIJoDO+vxm8HyPcq BTow== X-Gm-Message-State: APjAAAWuMETtF+6PBD8yH3Q8H7PdhBOH/1P/40ANJlKXx8oSMdYXo5Ik kLQd5NZTDvdfl5XIvaVAgJa5hIMDLJZi3XSr118= X-Google-Smtp-Source: APXvYqx3tGEzV0nazeaq8PuIA2gCTqnARPfc8zrFhbZuHeM4BIyZi4rLvmOIzcXnM+1KfCYaIeWsOv703vB/gsHAgS8= X-Received: by 2002:a62:be13:: with SMTP id l19mr35739543pff.137.1556132201874; Wed, 24 Apr 2019 11:56:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 24 Apr 2019 11:56:31 -0700 Message-ID: To: Sara Golemon Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary="0000000000001dcb1f05874b43d1" Subject: Re: [PHP-DEV] [RFC] Deprecate left-associative ternary operator From: mo.mu.wss@gmail.com ("M. W. Moe") --0000000000001dcb1f05874b43d1 Content-Type: text/plain; charset="UTF-8" Hello, the underlaying discussion here is more important; than just voting yes or no on uncompleted hamiltonian graphs; the real question here does php8 will be a break thru; meaning bugger off the mistakes of the past or a continuation of them; until this RCF does not happen; I would say nothing interesting will ever happen. Have a good day. On Wed, Apr 24, 2019 at 10:25 AM Sara Golemon wrote: > On Tue, Apr 23, 2019 at 3:56 AM Nikita Popov wrote: > > > Can't say I understand your position here. Don't want to change the > > ternary from left-associative to right-associative? I can understand > that: > > Silent behavior changes are always problematic. This is not what the RFC > > proposes though. > > > > Did the RFC change since introduction? I may have been looking at a stale > load of the page (opened it up awhile ago and only just got around to > responding). > > As for what it says atm, I still think it goes too far. the warning in 7.4 > I can support, but I'm not a fan of breaking existing code on a feature > that's this old. Ratchet up the warning in 8.0 if you'd like, but error is > further than I'm willing to go on this one. > > > > 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. > > -Sara > --0000000000001dcb1f05874b43d1--