News for hackers. Stuff that matters.
Re:PHP finally gets finally by kijin on Monday August 13, 2012 @10:42AM (#4376097)
This should have been implemented back in PHP 5.0, when exceptions were first introduced. A try-catch block without finally is only half complete!

But it's great to see half-complete features becoming fully complete, even if a few years late.

Re:PHP finally gets finally by TazeTSchnitzel on Monday August 13, 2012 @10:46AM (#4376122)
The main argument against it (that keeps coming up on ML) is destructors and resources cleaning up after themselves. Pretty weak argument though.
Re:PHP finally gets finally by ceol on Monday August 13, 2012 @01:24PM (#4376948)
Yes, considering OOP and exceptions are not dependent on each other.
Re:PHP finally gets finally by meritt on Monday August 13, 2012 @12:13PM (#4376569)
You should talk to Bjarne about leaving it out of C++ :)
Re:PHP finally gets finally by ori_b on Monday August 13, 2012 @01:02PM (#4376840)
C++ has a finally equivalent in a different form: Every object gets to clean up at the end of the scope as part of it's destructor. If you're not using RAII to manage cleaning up resources at the end of a scope, it's probably a good idea to change your style a bit.
Re:PHP finally gets finally by smsm42 on Monday August 13, 2012 @02:03PM (#4377143)
PHP perfectly can do the same. But I guess people want both.
Re:PHP finally gets finally by augusto_hp on Monday August 13, 2012 @12:07PM (#4376534)
It is definitely great. Although missed this for quite some years now, it is quite pleasing to see how the language continue to evolve throughout the years :)