Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86365 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30316 invoked from network); 24 May 2015 19:09:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2015 19:09:01 -0000 Authentication-Results: pb1.pair.com header.from=dev@mabe.berlin; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dev@mabe.berlin; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mabe.berlin from 80.237.132.167 cause and error) X-PHP-List-Original-Sender: dev@mabe.berlin X-Host-Fingerprint: 80.237.132.167 wp160.webpack.hosteurope.de Received: from [80.237.132.167] ([80.237.132.167:53120] helo=wp160.webpack.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6F/D1-08079-AC122655 for ; Sun, 24 May 2015 15:08:58 -0400 Received: from dslb-088-073-136-255.088.073.pools.vodafone-ip.de ([88.73.136.255] helo=[192.168.178.46]); authenticated by wp160.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) id 1YwbGZ-0000OG-OY; Sun, 24 May 2015 21:08:55 +0200 Message-ID: <556221C7.8040809@mabe.berlin> Date: Sun, 24 May 2015 21:08:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: internals@lists.php.net References: <971AB39D-1E20-43E8-9CF1-A7F67E3C14C3@icicle.io> In-Reply-To: <971AB39D-1E20-43E8-9CF1-A7F67E3C14C3@icicle.io> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;dev@mabe.berlin;1432494538;e993bcde; Subject: Re: [PHP-DEV] [RFC] Throwable Interface From: dev@mabe.berlin (Marc Bennewitz) On 05/23/2015 10:12 PM, Aaron Piotrowski wrote: > Hello, I’ve created an RFC for modifying the exception hierarchy for > PHP 7, adding Throwable interface and renaming the exceptions thrown > from fatal errors. The RFC is now ready for discussion. RFC: > https://wiki.php.net/rfc/throwable-interface > Pull Request: > https://github.com/php/php-src/pull/1284 > I like this RFC! It's much more intuitive as the current BaseException approve. Some small notes: > Backwards Compatibility > |Throwable|, |Error|, |TypeError|, and |ParseError| will no longer be available in the global namespace. Where are the new classes and the interface located if it's not in the global namespace or do I muss something? If I remember right the TypeException/TypeError will be thrown in some cases of internal functions with strict argument count. In my opinion a missing argument or to much arguments has nothing to do with the type and should have it's own Exception/Error class. > Aaron Piotrowski Marc