News for hackers. Stuff that matters.
Re:C++ confessions of a C developer by astrodust on Sunday December 04, 2016 @04:42PM (#13101922)
Nobody in the C world really cares about const, it's extremely rare to see it in the wild. The // comments, though, are ubiquitous.
Re:C++ confessions of a C developer by pjmlp on Sunday December 04, 2016 @06:18PM (#13102309)
Yet another proof why C software is so safe, when comments are more important than correctness.
Re:C++ confessions of a C developer by astrodust on Monday December 05, 2016 @01:18PM (#13107744)
The const keyword has nothing to do with correctness and everything to do with helping the compiler understand which values are immutable and can be optimized.