Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87486 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13075 invoked from network); 1 Aug 2015 19:09:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Aug 2015 19:09:07 -0000 X-Host-Fingerprint: 68.118.157.39 68-118-157-39.dhcp.mdsn.wi.charter.com Received: from [68.118.157.39] ([68.118.157.39:17684] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8B/81-08505-1591DB55 for ; Sat, 01 Aug 2015 15:09:05 -0400 Message-ID: <8B.81.08505.1591DB55@pb1.pair.com> To: internals@lists.php.net Date: Sat, 01 Aug 2015 14:09:02 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 References: <55BBD019.5030106@stephencoakley.com> <55BC201D.6010600@malkusch.de> <55BC9361.1080804@malkusch.de> <55BCA7EE.4030301@gmx.de> <55BCDB57.5060609@malkusch.de> In-Reply-To: <55BCDB57.5060609@malkusch.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 68.118.157.39 Subject: Re: [PHP-DEV] Re: Throwable::addSuppressed() From: me@stephencoakley.com (Stephen Coakley) On 08/01/2015 09:44 AM, Markus Malkusch wrote: > Christoph Becker: >> Markus Malkusch wrote: >>> >>> I'd like to revise that. I'd just learned that finally does indeed fit >>> here, as it would automatically glue exceptions: > > [..] > >> Note that there's an open bug report () >> regarding this issue. > > Thank you for pointing to that bug. So I understand the authors of that > bug are surprised that finally does magically attach exceptions. I did > actually also not expect that, as it is not documented nor do I have > that experience from other languages (did only check with Java). > > So I can assume that magic finally glue behaviour is not considered > stable, which then again gives Throwable::addSupressed() IMO a > justification. > > Markus Malkusch > In that case, an addSupressed() method still makes sense, and is once again a good idea. The finally block bug should be fixed before stable release, too, I think. -- Stephen Coakley