NYCPHP Meetup

NYPHP.org

[nycphp-talk] "Finally" missing in PHP...

David Mintz david at davidmintz.org
Tue Aug 5 10:50:10 EDT 2008


On Tue, Aug 5, 2008 at 10:37 AM, <paul at devonianfarm.com> wrote:

> I've been using exceptions more in PHP.  I've found some fun things
> lately,  like how to reroute errors,  warnings and notices as exceptions.
> It bugs me a lot that PHP doesn't support 'finally',  however,  because I've
> found that,  overall,  it's better than catch...
>
> http://gen5.info/q/2008/07/31/stop-catching-exceptions/
>


"Better" than catch? Do explain. Because AFAIK once it's thrown, somebody
has to handle it somewhere along the stack, and _finally_ won't do it unless
you die.

-- 
David Mintz
http://davidmintz.org/

The subtle source is clear and bright
The tributary streams flow through the darkness
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20080805/e9afc0ee/attachment.html>


More information about the talk mailing list