News for hackers. Stuff that matters.
Re:C++ the Good Parts (2014) by mhh__ on Thursday October 01, 2020 @07:19AM (#24649621)
D takes the spirit of RAII slightly further too in having scope guards as a first class concept.

Not as safe as proper RAII but very useful at the site of declaration to write scope(exit) close(file); or similar

Re:C++ the Good Parts (2014) by aldanor on Thursday October 01, 2020 @08:08AM (#24649952)
Scope guard in Rust: https://docs.rs/scopeguard