To view parent comment, click here.
To read all comments associated with this story, please click here.
And sometimes "poorly written code that is hard to maintain" has nothing to do with the technical merits of the language, and it's simply an indication that the original coder and the maintainer are just bad programmers who don't understand the language.
Again, Objective C is an object oriented extension to an imperative language. The C code in Objective-C looks and behaves just like C. The object oriented syntax and behavior is lifted from SmallTalk.
And there is a very clear reason for that: The syntactical differences in ObjC make very clear under which programming model one is operating, unlike C++ for example.
It is very simple, if you see something that does not look like C, you know that you're on the OO part of the programming model and vice versa. Really, it does not get any more elegant than that. Apparently you consider one of the principal features of the language to be a bug or a side effect, which led me to believe that you indeed do not understand what ObjC is.
Given the fundamental differences between imperative/functional and OO programming models, I would make the case that trying to shoehorn both under a C syntax, which was derived from a purely imperative model, is a recipe for disaster. Which is why so many C++ programmers end up producing bastardized C; functional code with useless OO wrappers.
Edited 2012-02-06 00:46 UTC




Member since:
2008-07-15
That is not what I said. I said that obj-c is two languages smashed together, and the two bits don't resemble one another. The SmallTalk-like objective bit doesn't fit in with the regular C bit when maintaining code, and it's sometimes a pain to decipher poorly-written obj-c code much more so than even straight C.
P.S. You would debate better if you leave out accusations.