Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100024 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98328 invoked from network); 24 Jul 2017 07:37:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2017 07:37:12 -0000 Authentication-Results: pb1.pair.com header.from=tim.bezhashvyly@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tim.bezhashvyly@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.172 as permitted sender) X-PHP-List-Original-Sender: tim.bezhashvyly@gmail.com X-Host-Fingerprint: 209.85.128.172 mail-wr0-f172.google.com Received: from [209.85.128.172] ([209.85.128.172:37554] helo=mail-wr0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6B/87-18680-7A3A5795 for ; Mon, 24 Jul 2017 03:37:12 -0400 Received: by mail-wr0-f172.google.com with SMTP id 33so45864201wrz.4 for ; Mon, 24 Jul 2017 00:37:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=fH7SFVJcZw/Uk/32JMkT6puW7VPqTyvqaTfHtKTxY4U=; b=iV2qpcE4gS3CsY6Ya1SvfqGosoM1nS7rktmLWEBIU9cjMRy2lycJCFpSLqfFelt+Tq isoDT/fm1HyKtNezGMBLjXFj1DH0uNYl8MPragKsZtHR90R3Znzv4oBcHAb+/lzb1EMs Pcw2h0gBUZrtlh0aWvQv3E1ZXF5HwVn5VRsPqC/GgUgVERMUnFtgsGsrBydfkBc47bct CH4AKopNUiBh9AZfz7LRVlANQEFIIz40fNadnohA3xeBdbrwdEMnumuEtaY3CgRoQNpv dVYRoo7mc8EL2WiV68Cu4k6FHaIv+RDzeHE+7n3sndHt1rkcY5/m6Gsi5u+diUqKuU5i WgZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=fH7SFVJcZw/Uk/32JMkT6puW7VPqTyvqaTfHtKTxY4U=; b=XCciKAacdxkdX33VBNLEn5JN4LKBYa5gsw55Grya8b9GoSWpXePJYzjPlxHn59FEyf 20rBaJGE1SCLSzm8WiMkTHe0O4eHlBmXYkR/pJZ5eojyyphh8HhRPDyQ+E2S3nEwoRMY 9aMFj5uA6GGOut9azNgAQrzLnoD1MhOgPJpHd04wRa/HDnICM97PCqB7ajEP2MqEKgAN xHyly4mPfZjsnngS3TkjJo+5PlXe1msNyMltcvfFZmkGrFWrUD3ekb7tsoGeB/LNRIS0 HfBO+RDmHHadPh2uqF2z2ofXXJ1rZIaX0AtOZ0M6q5oFDdX3uz3nT0aiEonazxFeR/yX XNQA== X-Gm-Message-State: AIVw113rsF5OIpaLL126LfpEixIrRRhp+VQ22Icn3eNfvivqdN7SZZKQ 50Q7+aFM5X9Dk7NyxQk= X-Received: by 10.223.153.179 with SMTP id y48mr13854507wrb.168.1500881829026; Mon, 24 Jul 2017 00:37:09 -0700 (PDT) Received: from ?IPv6:2003:d0:3c2:b00:2400:ea6e:2a8e:ecbe? (p200300D003C20B002400EA6E2A8EECBE.dip0.t-ipconnect.de. [2003:d0:3c2:b00:2400:ea6e:2a8e:ecbe]) by smtp.gmail.com with ESMTPSA id m125sm7833059wmb.30.2017.07.24.00.37.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jul 2017 00:37:08 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Message-ID: <20650CE0-9380-4DC0-BE3F-68E8D18E014D@gmail.com> Date: Mon, 24 Jul 2017 09:37:07 +0200 To: PHP Internals X-Mailer: Apple Mail (2.3273) Subject: RFC: Allow throwing an exception as right part of null coalescing operator From: tim.bezhashvyly@gmail.com (Tim Bezhashvyly) Dear internals, Don't you think allowing to throw an exception as the right side of null = coalescing operator would be a good idea? Something like: echo $a ?? throw new \RuntimeException('foo'); Regards, Tim=