3 ms·
I think they are a good fit for C and C++. Headers allow more fine-grained control of module inter-dependency and are great for targeting different processor ar
by zwieback 8y ago
I think they are a good fit for C and C++. Headers allow more fine-grained control of module inter-dependency and are great for targeting different processor architectures. Java, C#, etc. don't have to deal with that to the same degree so there's no direct comparison.
- mikepurvis 8y agoJava has the Foo/IFoo pattern. It's not a direct equivalence, but if you want to separate interface from implementation, you have that option.
- chrisseaton 8y ago> Java has the Foo/IFoo pattern. Are you thinking of C#?
- Quekid5 8y agoWhat? There's no real difference except spelling (aka syntax and convention).
- deleted 8y ago[deleted]
- mikepurvis 8y agoIt may be applicable there too; I just don't have any direct C# experience.
- sdinsn 8y agoExcept the Foo/IFoo pattern is more related to OOP than it is about separating interface from implementation. You wouldn't create Foo/IFoo classes if you knew for a fact that Foo will be the only implementation of IFoo