My advice on implementing stuff in C:
My advice on implementing stuff in C:
Posted Oct 15, 2010 16:21 UTC (Fri) by mjthayer (guest, #39183)In reply to: My advice on implementing stuff in C: by Ed_L.
Parent article: Russell: On C Library Implementation
I do now prefer to use C for that reason. But I still find C++ tantalisingly tempting, as it can do so many things that are just painful in C. I do know from experience though that it will come back to haunt me if I give in to the temptation. And I am experimenting to find ways to do those things more easily in C. The two that I miss most are automatic destruction of local objects (which is actually just a poor man's garbage collection) and STL containers.
Oh yes, add binary compatibility with other things to my list of complaints above; dvdeug's comment below is one example of the problem. That is something that has hurt me more often than I expected.
