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

I'm just questioning the assumption that RAII as a concept must be memory unsafe, specific language aside.

Edit: To be clear it's the latter question, but more general. C++'s implementation has many opportunities for errors, but I do not think the technique is inherently unsafe. (PL research has proven many similar systems based on unique types and borrowing to be type- and memory-safe.)



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

Search: