Newsgroups: php.internals
Path: news.php.net
Xref: news.php.net php.internals:105307
Return-Path: <nikita.ppv@gmail.com>
Delivered-To: mailing list internals@lists.php.net
Received: (qmail 36576 invoked from network); 17 Apr 2019 13:22:29 -0000
Received: from unknown (HELO mail-it1-f178.google.com) (209.85.166.178)
  by pb1.pair.com with SMTP; 17 Apr 2019 13:22:29 -0000
Received: by mail-it1-f178.google.com with SMTP id u65so3484244itc.2
        for <internals@lists.php.net>; Wed, 17 Apr 2019 03:21:20 -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=4rU7Gqfgh7N3Gg5XcWcvOTSwB6hNgaP8JmGg/j97/5k=;
        b=dNrw00mCIPMm5o6cP/kS7UJe/u9u6tfFEDKg6gvaRxUwStkuWOvq7w1B563p6qA879
         RqiEh9BmEbaCJ0SAvfwSpAfv9wCC3mVvdfun+Ix8cPUJdt64JVcMv+o0Krof/Ez2GoXb
         U60EwwiiXQfJsnlc63iIHN/DeZBfNEJglvx2lVYDI1b7Irfpze870/9rH3+RyvBJwomA
         J8B3tK2BqngPTkc2SaqXhWYy6Tq13YxXOR894EIY53qwrydTIwNGEN2/+gc1o6J5ZFOs
         xsRX41Bfttmi7e5Ak7db4q7Mt5BgkuliPvzD5Zq2jrCFtRx7LDejcbxtETWbbVYud2xZ
         miSQ==
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=4rU7Gqfgh7N3Gg5XcWcvOTSwB6hNgaP8JmGg/j97/5k=;
        b=n5sZbpRF1p23JdSBNoL+p8Cd03DVRpSVpuBS13h2NYs7uEKYhtHUDo+0i/CK8qSnOL
         qKKDN6vvkQWS04uw03ZQcm2q1iQ2ziOfn5D7bdE5QHzLK0BYZ4O/+7/iPAne1nXQcXvb
         SXJlazKbv+3BNz3j/xrLZ4PCQeubyPZvuxZEGW5K54+e95n5Cq9IHV0bYINl7qnjFbmg
         qGbLFX5pSV2Y0aHerA2pIlVCkpUDXN2LCvkPz6JR7MqZcfGyxy6PVLCTX+InCCqtj0pT
         ZpM3mWyiNiedAA+080rg3s0q4H27Z+uvifC8m1ExalkOvhRqFJwZkGvN3ZTo3vD3IllM
         nHSg==
X-Gm-Message-State: APjAAAVYZRM6faD0UEVy2FyzTjiVHxkr8ayZh86Wos/bBZJsqSSoXsDn
	aIcKp3TtRr3RfCOeZ4xEapMxDb36MxkOSaDDVSXCmeLX
X-Google-Smtp-Source: APXvYqw4O46zYOG0m1Ge8LapCDsOJFdrEJgDqb+5W+X+oMIp6jl0h5982mJ20Kf2hxalD0+/MShhzA4Ep0SUOoTnu78=
X-Received: by 2002:a24:9197:: with SMTP id i145mr32249815ite.117.1555496480674;
 Wed, 17 Apr 2019 03:21:20 -0700 (PDT)
MIME-Version: 1.0
References: <CAF+90c_DYFQ_7dXvHg-8DfVJ9zQT8xYfFObiJCLHFskFgqhJeQ@mail.gmail.com>
 <d0dfc60e1346f8faa3349a73c49f4c55@gmail.com>
In-Reply-To: <d0dfc60e1346f8faa3349a73c49f4c55@gmail.com>
Date: Wed, 17 Apr 2019 12:21:04 +0200
Message-ID: <CAF+90c8JRSADJQBBmaP8v6sGNOvhQyKRBjoxkxoYa1g3_gwoig@mail.gmail.com>
To: =?UTF-8?Q?Lauri_Kentt=C3=A4?= <lauri.kentta@gmail.com>
Cc: PHP internals <internals@lists.php.net>
Content-Type: multipart/alternative; boundary="0000000000002e1bae0586b73fb8"
Subject: Re: [PHP-DEV] [RFC] Deprecate left-associative ternary operator
From: nikita.ppv@gmail.com (Nikita Popov)

--0000000000002e1bae0586b73fb8
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sun, Apr 14, 2019 at 12:12 AM Lauri Kentt=C3=A4 <lauri.kentta@gmail.com>
wrote:

> 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.
>

This case is not affected, as it's not related to associativity. I've
mentioned this in the RFC explicitly now.

Nikita

--0000000000002e1bae0586b73fb8--