News for hackers. Stuff that matters.
Re:C++0x (upcoming C++ standard, includes lambda functions) by jonhohle on Wednesday August 11, 2010 @06:23PM (#1596388)
I may be in the minority, but I like header files. Interface => Implementation, enforced at the file level. Add Obj-C's #import macro and they even look reasonable!
Re:C++0x (upcoming C++ standard, includes lambda functions) by ben_straub on Wednesday August 11, 2010 @07:42PM (#1596614)
Well, you either have to publish your member variables and their names to the world, or use PIMPL, which is (I think) a bit of a hack. Having partial classes (a la C#) would be nice for this.
Re:C++0x (upcoming C++ standard, includes lambda functions) by pmr_ on Wednesday August 11, 2010 @08:20PM (#1596687)
There even was a module system but it got scrapped. Complexity and impact on the core language among the reasons.
Re:C++0x (upcoming C++ standard, includes lambda functions) by exit on Saturday August 14, 2010 @11:06AM (#1603393)
if i want to distribute an interface without implementation, some utility should look through the implementation and produce a header file for me.

leaving it up to the programmer is a waste of time.