3 ms·
> Which is a problem you also have in C. Personal opinion will differ, but after reading and working on both C and RAII-heavy C++ low level code for many years
by anyfoo 4y ago
> Which is a problem you also have in C.
Personal opinion will differ, but after reading and working on both C and RAII-heavy C++ low level code for many years (though I don't do the C++ one anymore), the low level C code just feels like fresh air when auditing.[1] It's all so explicit. For high level, as mentioned initially, I feel the opposite, as the boilerplate gets in the way.
> Of course, you're always free to just not use RIAA in those specific contexts.
That's my point, is it not? RAII in high level code, not in low level code. I did not claim they have to be in different code bases.
And I am really not afraid of abstraction, my favorite language is Haskell. But that's so high level, and so far from the metal, that every function looks pure, and every value is lazy by default.
[1] Personally, I think Rust would be my choice.