Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84133 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88552 invoked from network); 1 Mar 2015 23:22:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Mar 2015 23:22:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=dz@heroku.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dz@heroku.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain heroku.com designates 74.125.82.53 as permitted sender) X-PHP-List-Original-Sender: dz@heroku.com X-Host-Fingerprint: 74.125.82.53 mail-wg0-f53.google.com Received: from [74.125.82.53] ([74.125.82.53:38585] helo=mail-wg0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AC/D0-17251-71F93F45 for ; Sun, 01 Mar 2015 18:22:00 -0500 Received: by wgha1 with SMTP id a1so30236676wgh.5 for ; Sun, 01 Mar 2015 15:21:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=vNubyDsHdPMDIGPF7kVmqC5hjzvVQS6Wdmyk5kk7knE=; b=J5XCAszklJu9q1wGItBbtDK3ho0RKGcAM46aWYyNdiCN7uHjNC8wQQlldghyN197nM nItpFR+Xk+kUXgPADGHGauAUrltptKvNnmh2U6olXYjiiFifS0A6l6bGSuqgmIJdQ3AE moC5ZsOBWKudnyhgMFhKXjhS++EDjD4mV8gSCXoq14sOWPCMjsepseWBNFrfqpYzpFUF JK+tVpppzClwcDa1ufVktm3ITW+5VQw8QjL233+CQEUs0etgXiWQfRGHhCZVR+W/dZ+/ ZXMBlWi4JGR6sTnLEcmbdvhcFWjevO1MOBWKswwjgHYKsw4juVgrql+/7P4d5quBwqID /0mw== X-Gm-Message-State: ALoCoQlyjuri0qM/jz4pdMQma/K4HiDO9Rbod0BvRvJj2xubZCNTS6X5yWZVeifoVXhD+9zcJy8+ X-Received: by 10.194.200.196 with SMTP id ju4mr6374449wjc.47.1425252115379; Sun, 01 Mar 2015 15:21:55 -0800 (PST) Received: from [192.168.19.19] (ipbcc0d8c7.dynamic.kabel-deutschland.de. [188.192.216.199]) by mx.google.com with ESMTPSA id gm2sm13555318wib.5.2015.03.01.15.21.54 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 01 Mar 2015 15:21:54 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) In-Reply-To: <54F07FC7.8050901@php.net> Date: Mon, 2 Mar 2015 00:21:53 +0100 Cc: internals@lists.php.net Content-Transfer-Encoding: 7bit Message-ID: References: <54F07FC7.8050901@php.net> To: Sebastian Bergmann X-Mailer: Apple Mail (2.2070.6) Subject: Re: [PHP-DEV] [VOTE] Exceptions in the engine From: dz@heroku.com (David Zuelke) +1000 on this; so much better than the BaseException stuff! > On 27.02.2015, at 15:31, Sebastian Bergmann wrote: > > Am 23.02.2015 um 19:15 schrieb Nikita Popov: >> Voting on the engine exceptions RFC, which proposes to convert existing >> fatal and recoverable fatal errors into exceptions, has opened: >> >> https://wiki.php.net/rfc/engine_exceptions_for_php7#vote >> >> The primary vote requires a 2/3 majority, as this is a language change. >> >> A second vote will decide whether to use a BaseException based inheritance >> hierarchy. This vote uses a simple majority. > > I have voted yes on "Allow exceptions in the engine and conversion of > existing fatals?" and no on "Introduce and use BaseException?" and > would like to elaborate on the latter. > > I am sorry that I was unable to raise this concern earlier (did not > really become aware of the RFC before it was put to the vote), but I > would prefer the following: > > * Introduce a Throwable interface > * Let Exception implement the Throwable interface > * Introduce an Error class that implements the Throwable interface > * Use Error class as base class for exceptions raised by the engine > > This would be along the lines of what Java does. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >