Hacker News new | past | comments | ask | show | jobs | submit login

> No part of that phrase matches reality.

It's true. When exception handling was added to PHP, RAII was absolutely factored into the design. This is why it didn't get a finally clause to start with -- it's unnecessary.

> Which is irrelevant because once again what PHP has is not RAII it's reference counting

http://www.hackcraft.net/raii/

http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initial...

If you have reference counting or stack allocated objects than you can do RAII. You seem to be confused as what these terms mean -- they are not contradictory, they are complimentary. Ref counting allows RAII.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: