Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105175 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 51235 invoked from network); 9 Apr 2019 16:58:07 -0000 Received: from unknown (HELO mail-io1-f48.google.com) (209.85.166.48) by pb1.pair.com with SMTP; 9 Apr 2019 16:58:07 -0000 Received: by mail-io1-f48.google.com with SMTP id p23so13702473iol.13 for ; Tue, 09 Apr 2019 06:55:01 -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=puyirs6c2YuRDrEyDsVGBRH4aWgAySbuSeFcowuJlM8=; b=LeHfizRtNhzCEQureH8y8tHyrD581GhnWWh6dQWmu5Rnc7AmiaOVKy2eTP6GJMlERS +eOCC/KAicVkbVbu4dcRAInqIJD88X4Ja83UVMtsd7PTx6cb0byZiQOzUKHKDCoOisyP EgsXU8RW7qNlF/5lIrqHaBS9jg1i0DLcDNLHuUB7vvl9h+4VtdUnfYqcMz+D2zjQNjOS wojJEXkyHW6ieTui6M3jtJF47wilCG5k48BXNU5pqmb4wsY+1qZ1c5SOM4Gmpntcngw4 4L1wWsFz9j1dDynHwSrxvlxQwRFGcTVU8Qt89X8lZ/ppf/drajjHsJLeUEbPnndur5VR mEjg== 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=puyirs6c2YuRDrEyDsVGBRH4aWgAySbuSeFcowuJlM8=; b=smym3tsPlvOM8FdUjEm4N15GMq+E97UJ7UcXNW4Vg3x1KSuA4HjaD/IqCa5PFdK3KU Gk5ZlNI6sHv8tXGv7RsWf90626I7zHFlsH0S7XY5HK2lq1eCngIC3vZSVwcJ6EiV0JWe o3q4v3tBZqVKgf5/LxXfqglGf0qv/0/o/a6Xo2BStMs7aVxVlXEYTzA1DpgX1cRCUbxp rrJ2i+fMjN0w0YQoG8M9b9t6dbRa/3is1ivKzEsuAnitnPWf+RxIASxHfiDCxkWPvQPz 8nwx9bXsnXUfHjyVXSgIYM85Up0uPRgL/HI9NUhrdx0ry+HBGp/WXU8Xd4QtEv0Bm4tI Oi8A== X-Gm-Message-State: APjAAAXA7VKmcA/eAaEl1vif8WAE2b/2vdmb8P7zDJmVMFmSI58phRQQ FrOQJaUajYe/b9UlUIexuJUrrBQgyeK/KiOYhMs= X-Google-Smtp-Source: APXvYqwBA8lizU3FRR8zG0o49ZdBgJ7HXJmnOJFEUA90d+YPi0jK+c8PGVBHlg8sSM8WFRuwePCLfcS+X/Rb3Xu2Was= X-Received: by 2002:a5d:834e:: with SMTP id q14mr3534831ior.248.1554818101106; Tue, 09 Apr 2019 06:55:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 9 Apr 2019 14:54:49 +0100 Message-ID: To: bishop@php.net Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary="0000000000009b5b120586194c12" Subject: Re: [PHP-DEV] [RFC] Deprecate left-associative ternary operator From: rowan.collins@gmail.com (Rowan Collins) --0000000000009b5b120586194c12 Content-Type: text/plain; charset="UTF-8" On Tue, 9 Apr 2019 at 11:19, Bishop Bettini wrote: > See also Bug 61915[1], which suggests leaving ? left and introducing ?? for > right. Personally I don't see any benefit to keeping a ternary with left > associativity. > ?? wouldn't work, because that's now the null-coalescing operator. (I've no idea if it would be ambiguous to the parser to have it mean both, but it would be horrible for humans to read!) Obviously, that doesn't rule out having a new syntax of some sort, but it highlights the usual problem with suggesting new operators: we're running out of punctuation! Regards, -- Rowan Collins [IMSoP] --0000000000009b5b120586194c12--