4 ms·
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?
by muaddirac 13y ago
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?
- K0nserv 13y agoIn 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.
- muaddirac 13y agoTrue, but that's nothing that couldn't be done in either a separate file or in the .m?