it's mesmerizing that the fantastic ergonomics of RAII have not propagated to other languages.
It's way easier to use, much clear, less typing, more predictable runtime behavior.
RAII... terrible name, great concept!
It's way easier to use, much clear, less typing, more predictable runtime behavior.
RAII... terrible name, great concept!
Traditionally langages with simpler runtimes simply used destructors for this, refcounting made it deterministic (modulo the old reference leak), but more advanced garbage collection schemes made that stop working.