Re:The eero programming language - a dialect of Objective-C
by neutronicus on Saturday July 07, 2012 @02:02PM
(#4212262)
I completely agree about header files. Having all of the type signatures and argument names associated with a library in one place is great.
[ Parent
| on HN ]
Re:The eero programming language - a dialect of Objective-C
by pjmlp on Saturday July 07, 2012 @04:55PM
(#4212696)
Header files are a relic from the 70's, which was replaced by sane module systems in the 80's.
Only stone age languages insist in using header files.
Re:The eero programming language - a dialect of Objective-C
by frou_dh on Saturday July 07, 2012 @03:53PM
(#4212528)
When using an IDE, that seems the type of thing that should be automatically derived from code rather having to be written and maintained by hand.
i.e. More suited to some kind of read-only overview browser than just another finicky text file.
Re:The eero programming language - a dialect of Objective-C
by cageface on Saturday July 07, 2012 @04:50PM
(#4212679)
Absolutely. I recently started working on an Android port of an iOS app of mine and it's a big time saver letting the tools take care of these details. Not to mention how much more powerful refactoring tools can be when they don't have to worry about a preprocessor.
Re:The eero programming language - a dialect of Objective-C
by to3m on Saturday July 07, 2012 @08:39PM
(#4213168)
Visual Studio will generate class declarations for CLR classes from the associated metadata, if you do a `go to declaration' on a system class.
Something similar could be done with Objective-C, judging by the output of the `class-dump' tool (see http://www.codethecode.com/projects/class-dump/). If you run it on an app's private frameworks - I hear that Xcode 4 might demonstrate the principle - you'll get back a surprisingly complete set of interface, method and ivar declarations. This suggests that if the will were there, we could do away with header files, even for libraries shipped as compiled objects. It works well for the CLR.