3 ms·
To be fair, you’re doing the old: “Nuh uh, you can definitely use a car as a boat”. Yes, you’re right, you can live in the stack and use RAII for C++. But the
by whb07 6y ago
To be fair, you’re doing the old:
“Nuh uh, you can definitely use a car as a boat”.
Yes, you’re right, you can live in the stack and use RAII for C++. But there’s no enforcement flag or a RAII-ONLY check at compile. So it’s moot what you’re saying.
- cultyyy123 6y agoSo is Rust. Does Rust has an enforcement flag for RAII-only? Rust has manual memory management too. If someone uses Modern C++, he must learn to use RAII. > “Nuh uh, you can definitely use a car as a boat”. You can if car supports water such as Amphicar C++ is liberal. You can write Orthodox C++ if you wants. I was replying to a Professor. I'm advocating Modern C++. I've done quite complex projects that uses RAII.