Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105328 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 89047 invoked from network); 22 Apr 2019 11:09:55 -0000 Received: from unknown (HELO mail-io1-f47.google.com) (209.85.166.47) by pb1.pair.com with SMTP; 22 Apr 2019 11:09:55 -0000 Received: by mail-io1-f47.google.com with SMTP id y6so1279367ior.5 for ; Mon, 22 Apr 2019 01:10: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; bh=Uwyeh7cqoRAGG0bbOfYX4kazC2ggZrb3icTL7K2pSw0=; b=tVojgJ27X/G7Ih/VlY5cIZhWbeMOQQOG/ZD2XWNVrLFy/VSVb+TGnnkN0JGR/+r8Af twMfmaKdQpRy7KnyxeAt61zRXsNdT+SgDCYjAeRViKS5v+c9zn9uNk75h2AEw9eJP44I TaPY85c4oavFqaILKt/YpGvj0Wg7hPP+oC6sSspBgXmP6wvGhDjXCJJUh5Zkmjut8+Eb CLryx/vrqOlhva7CQvjVvcqaWSmC80jHsv1XLSAiSy+bQkDvU+XXQ7g+nmTH8hjXHrWQ +VHl3gADxeVKzOzZ7N5Q6fLTs5DK91QuaGlUIyHfShMcLRyU3cQ8WdSsVh1We98wqgzs J7Wg== 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; bh=Uwyeh7cqoRAGG0bbOfYX4kazC2ggZrb3icTL7K2pSw0=; b=rXBpdDl9U3pbuXP8TwfMtUllbww3LeLsI5+XKbcKTA1jJrvguV18uSkqQl9HWaMmy1 T3GSoOPt47gQAdikzUezO0cTpts0D/FSQD8Pmd+ihUrlIvjRG5p47Ez+8aVdqz3sqx++ xKqWBM8eXNry8a6I4F2nCJzKxB67R3JCRJAi+AzXBmWCynSCzNJBSz+qMQk1mSnqly2D KAoXhCNB/qsGcQ6vqJVh6tQpdw8vtKG2mXyYHKU3I4FHQ55rhTCZMP79ililgDXurmb2 53J2EcXpEOlk19oIFQ3oOKZL2mH2V6su+wmtIRa4BA01GZtm0iKIo16Wg1Yj94i1X4Zg MW7w== X-Gm-Message-State: APjAAAWjLVYfvOaiRmCVDnRk+1tX/fhbGdgumBiUQmSDChaPKpQ7Kk1g 9RGIVIrRsLt4lc8WEnifgipzDhwTgbpyc5YaJXRS8ExzikI= X-Google-Smtp-Source: APXvYqzMLfPik4zOFLV8kkYtW/Agshl1qf9Eqih+CvZoKBPgbVa663izi90M39dCfe7h3s9be2WRN4w4lB8bzISEUic= X-Received: by 2002:a6b:6201:: with SMTP id f1mr11115706iog.47.1555920600672; Mon, 22 Apr 2019 01:10:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 22 Apr 2019 10:09:44 +0200 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="000000000000b3ba1b058719feec" Subject: Re: [RFC] Deprecate left-associative ternary operator From: nikita.ppv@gmail.com (Nikita Popov) --000000000000b3ba1b058719feec Content-Type: text/plain; charset="UTF-8" On Tue, Apr 9, 2019 at 11:54 AM Nikita Popov wrote: > Hi internals, > The only objection here came from Gabriel, and I don't think we'll come to > an agreement. > 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: > > https://wiki.php.net/rfc/ternary_The only objection here came from > Gabriel, and I don't think we'll come to an agreement.associativity > > > This RFC makes nested ternaries without disambiguating parentheses an > error in PHP 8 -- we might want to consider making them right-associative > instead, which is both useful and matches the behavior of other languages. > > Regards, > Nikita > Heads up: Plan to start voting tomorrow. Apart from Bishop, would anyone else prefer to directly go to right associativity in PHP 8 rather than making it an error? I'm rather partial to that myself, maybe it can be included as a voting option... Nikita --000000000000b3ba1b058719feec--