Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

14
  • 9
    I agree with most of what you write, but the last paragraph makes things a little to simple. Header files still serve a useful purpose for defining public interfaces. Commented Dec 29, 2012 at 15:54
  • 3
    @honk That's what I was getting at with my question. But I think that modern IDEs (as suggested by ElYusubov) kind of negate this. Commented Dec 29, 2012 at 16:13
  • 5
    You could add that the C++ committee is working on Modules which would make C and C++ be able to work without any headers OR with headers used in a more efficient way. That would make this answer more fair. Commented Dec 29, 2012 at 16:46
  • 2
    @MattFichman: Generating some header file is one thing (which most programmer's editors/IDE's can do automatically in some way), but the point about a public API is that it effectively needs to be defined and designed by an actual human. Commented Dec 29, 2012 at 18:46
  • 2
    @honk Yes. But there is no reason for this to be defined in separate files. It can be in same code as implementation. Just like C# is doing it. Commented Dec 29, 2012 at 20:33