3 ms·
> basically only C++ has it RAII is associated most prominently with C++ where it originated, but also D, Ada, Vala, and Rust. https://en.wikipedia.org/wiki/R
by giancarlostoro 6y ago
> basically only C++ has it
RAII is associated most prominently with C++ where it originated, but also D, Ada, Vala, and Rust.
https://en.wikipedia.org/wiki/Resource_acquisition_is_initialization https://en.wikipedia.org/wiki/Resource_acquisition_is_initia...
Topical sidenote D's got destructors as well:
https://dlang.org/spec/class.html#destructors https://dlang.org/spec/class.html#destructors