LWN.net Logo

C vs. C++ vs. ...

C vs. C++ vs. ...

Posted Jul 1, 2012 19:32 UTC (Sun) by apoelstra (subscriber, #75205)
In reply to: C vs. C++ vs. ... by khim
Parent article: Why learn C? (O'Reilly Radar)

The flip side of "data not there when you need it" is that you get much smaller scope (and therefore easier analysis, easier optimization, etc), and you also get guarantees that data will not be modified except by functions who specifically ask for it.

But that is a generic argument against OO-style abstractions, not necessarily an argument specifically for C.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds