Y
Hacker News
new
|
ask
|
show
|
jobs
by
f1shy
611 days ago
Is RAII Object orientation? I thought it was an idiom of C++ by Stroustrup.
1 comments
runevault
611 days ago
It doesn't necessarily have to be OO no. Rust uses RAII and it uses traits instead of traditional OO style inheritance etc. You do need something like destructors/drop trait for it to work as far as I know though.
link