3 ms·
This is an exciting step forward for being able to prevent repetitious code and handle exceptions more elegantly. More excitement will be had when we actually s
by randomdrake 14y ago
This is an exciting step forward for being able to prevent repetitious code and handle exceptions more elegantly. More excitement will be had when we actually see this implemented in an upcoming version.
In case you are wondering why this link goes to the bottom of the page, the important bit is:
2012/08/13 Xinchen Hui: Close voting, RFC win the voting
The RFC is a bit dry and does explain some use cases, however, GoogleGuy (who is a really nice and helpful guy in the ##php channel) provided a wonderful explanation[1] that goes into more detail.
Accepting the RFC is just the first step, let's hope we can see this in the next version.
[1] - http://sheriframadan.com/2012/08/finally-keyword-in-php/ http://sheriframadan.com/2012/08/finally-keyword-in-php/
- TazeTSchnitzel 14y agoOh, it will be, laruence is merging into master. Although whether it is 5.5 or 6.0 remains to be seen. Also, looks like generators may come to vote soon since NikiC has asked on mailing list about it. http://wiki.php.net/rfc/generators http://wiki.php.net/rfc/generators