Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

RAII isn't only about exceptions (although it helps greatly); see Rust for example.

RAII is about any scope exit automatically cleaning up resources. Exceptions is a big one, but so is return, break, etc. Having it happen automatically in all cases is a win for robust software (in my opinion).



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

Search: