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

I feel like most RAII fans will openly admit that it’s the worst name in the world for such an idea. The idea is that any time you acquire a resource, you should initialize an object with said resource. But I guess “resource allocation should always lead to object initialization” is too long.

The reason to do this is precisely so that the resource can be cleaned up at destruction of the object. So even if you had an acronym like RASALTOI, it would still probably be misleading



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

Search: