Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The separation is nice, but does it need to be done manually?

Couldn't a simple compiler take in .m files and output compiled code + .h files?



In C/C++/Objective-C the .h files are not use solely for declaring the public interface of a class a lot of times this is where one exposes enums, typedefs, defines which are related to the class in question. The obvious argument against this is using static class members, but I would argue that it adds unnecessary verbosity.


True, but that's nothing that couldn't be done in either a separate file or in the .m?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: