Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105269 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 40856 invoked from network); 14 Apr 2019 01:14:40 -0000 Received: from unknown (HELO mail-yb1-f175.google.com) (209.85.219.175) by pb1.pair.com with SMTP; 14 Apr 2019 01:14:40 -0000 Received: by mail-yb1-f175.google.com with SMTP id m5so3184576ybk.13 for ; Sat, 13 Apr 2019 15:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:content-transfer-encoding:date:from:to:cc:subject :in-reply-to:references:message-id:user-agent; bh=k5WXI80o8E3/I55mpcAIZyiXcyPbwwsLjvM4lXUsOgM=; b=EykKWSaqduzC13EL2S2BUqSbXiIrwY/GlA6w0jnV79OooGDDfYF3U/nKqKXihWOO6X gAq3m+zhHIaD4gvxFcDkApl4SZTlUyafaJ9iD2dKer+/+Ag2L8rg5xVT3Jv8zxNDOJbN 5VO9zurHMq6IPU1GLpdiD2dGSSBq25Hvw6nTM6jVWD3jLP2N2BFAfuQ9SbIDBwr12Lmz Zqfp/y1HKhBQN1zwubYsYIrTz6BGiLQnXBwp8VzI0B70woM3I9x8acBDy8QO0QTBbIvR cIj0oGAJOH5wzGofplQHSLGocJng8d5576Mm14JKfrBYlF17XjBLjQKqxg6neoLbh7h8 D2fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding:date:from :to:cc:subject:in-reply-to:references:message-id:user-agent; bh=k5WXI80o8E3/I55mpcAIZyiXcyPbwwsLjvM4lXUsOgM=; b=ItBbXQsjJVjyvHAjzZNekmWyWtV367houG9L5YYww72Pk3FDFKu3s5EpczFT9RNxkR iX/auz7DH9ufU0/5C7EfSCSQ+0N7xY32gKg4SqZhi4EiR3jD8ViQ1c6VAIsEmSTllm53 owFMKLL7fcQrx90fg4VC/Yvj5uowkFUZS8pSfQCrKpQ5pVn6pKFvd5c+YYR8PfPPWTfT arxA2GhCMGd3bwgMv+zqZziUsjl1ihTfS25aXsJdtcvi82960UFVbMYJG23C/+YrhyzX 1P0LP5/mchW+mD2ZKDqatm9GUtTp8bXGYQVKqeAa7DoARr/zYGLP5qmSLZqXqJW4/q9b OoSQ== X-Gm-Message-State: APjAAAXHSzo4RHL0FHsJgtBqR81HDWMwczXBcSx7E6jNeajiYY19/e3/ 99rlT8dZ71qtYtFdRqXhZ+o= X-Google-Smtp-Source: APXvYqzagfYaU2zdO6mqv/vk6Q+KWoGHQ1YVIb1/ZewztCR2ECG89OacNKs+5DxVM+whJfKm4C9cyw== X-Received: by 2002:a25:6544:: with SMTP id z65mr52523639ybb.66.1555193559314; Sat, 13 Apr 2019 15:12:39 -0700 (PDT) Received: from k-piste.fi (k-piste.fi. [178.62.210.197]) by smtp.gmail.com with ESMTPSA id h204sm26094038ywh.110.2019.04.13.15.12.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Apr 2019 15:12:38 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Sun, 14 Apr 2019 01:12:36 +0300 To: Nikita Popov Cc: PHP internals In-Reply-To: References: Message-ID: X-Sender: lauri.kentta@gmail.com User-Agent: Roundcube Webmail/1.3.8 Subject: Re: [PHP-DEV] [RFC] Deprecate left-associative ternary operator From: lauri.kentta@gmail.com (=?UTF-8?Q?Lauri_Kentt=C3=A4?=) 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. -- Lauri Kenttä