3 ms·
I think it's harder (or at least time consuming) to write code like that. Pretty error prone too, when forced repeat manual memory allocation and freeing, etc.
by vardump 6y ago
I think it's harder (or at least time consuming) to write code like that. Pretty error prone too, when forced repeat manual memory allocation and freeing, etc.
On the flipside, that kind of code is often much easier to debug. For me, the worst cases debugging wise have all been crazy inheritance messes.
- mratsim 6y agoYou can write procedural without having to resort to manual memory management. C++ and Nim (for citing languages I know the best) gives you tools, destructors for both and for Nim a tunable/deactivable GC, that you allow you to write proceduraly without half your code being about memory management.