Re: [RFC] Supports 'finally' keyword for PHP exceptions
| From: | Johannes Schlüter | Date: | Tue, 24 Jul 2012 13:48:43 +0000 |
| Subject: | Re: [RFC] Supports 'finally' keyword for PHP exceptions | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-61682@lists.php.net to get a copy of this message | ||
On Tue, 2012-07-24 at 19:20 +0800, Laruence wrote:
> Hi:
> As the previous threads disscussed, I make a implemention.
>
> here is the RFC: https://wiki.php.net/rfc/finally
>
> any suggestions?
>
> thanks
As PHP has destructors there is less need for "finally" compared to
other languages. What are the cases where an extra language construct is
needed? (i.e. one can also use C++-like RAII things ...)
The RFC is also missing to demonstrate the order of finally calls in
nested try-catch-blocks.
johannes