3 ms·
No RAII is one of the things that really bugs me about go. I can't just construct an object and have it be ready, I have to remember to call some other method.
by dbcfd 13y ago
No RAII is one of the things that really bugs me about go. I can't just construct an object and have it be ready, I have to remember to call some other method. Rust's memory model is also better, since it's akin to shared pointers (which you know the lifetime of) rather than garbage collection.
- bloodorange 13y agoWhat I meant was that the way RAII works in C++ is a blessing and it can't work the same way in Golang since it doesn't give us control of when the object is destroyed. So, we are actually in agreement here.