3 ms·
Yeah, my thought/question is more about doing so ergonomically. Because C++ has encapsulation and operator overloading, you can make it very ergonomic to write
by kbolino 3y ago
Yeah, my thought/question is more about doing so ergonomically. Because C++ has encapsulation and operator overloading, you can make it very ergonomic to write memory-safe code.
I think it's very difficult to do the same with plain C. It's probably possible to make it less painful with macros, but doing so builds something more like a DSL atop of C, and would frustrate IDEs that don't understand the conventions.