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

I, and basically every language designer since the 80s has disagreed with this. It's needless repetition: all of the information contained in the .h file is duplicated in the .m file. If you really want a nice listing of the exported methods, it's easy to generate that from the .m file.


I agree that there is some merit in the repetition argument, but when discussing a language like Objective-C we must consider that any Objective-C programmer is surely using auto completion to the fullest extend due to the extremely verbose nature of Objective-C naming conventions. The point being that the repetition time is negligible


Stockholm syndrome from too many years in the company of archaic compilation models: it's real and it's scary!


It is incredible how C based compilation models become so widespread, that younger programmers are completely unaware of sane module systems in other languages with ahead of time compilation toolchains.


Only worth doing if there are some directives added for public/private directives.

Exposing internals is still bad design.




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

Search: