tag:blogger.com,1999:blog-14961681.post5227864994349769379..comments2023-11-05T01:10:47.996-08:00Comments on It's Not Its!: Subjective-CMehttp://www.blogger.com/profile/09311960413148239716noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-14961681.post-63134210501170732022008-07-19T23:37:00.000-07:002008-07-19T23:37:00.000-07:00I fully expected to be (possibly) wrong on all acc...I fully expected to be (possibly) wrong on all accounts as I learned more but it's nice to have somebody do the work for me ;)<BR/><BR/>Problem is though I still don't understand the advantage of Objective C yet. I understand the historical influences behind the current incarnation of Objective C but history doesn't necessarily equal Good. I feel like I shouldn't have to dig too deep to understand the expressive potential of a language. So far, Objective-C as a language (separate from libraries) doesn't have me convinced.<BR/><BR/>Yet.Mehttps://www.blogger.com/profile/09311960413148239716noreply@blogger.comtag:blogger.com,1999:blog-14961681.post-77376961222744225052008-07-19T13:08:00.000-07:002008-07-19T13:08:00.000-07:00I'd first like to point out that Objective-C was c...I'd first like to point out that Objective-C was created about 10 years before Java popularized the term interface. In fact, Java interfaces were inspired by Objective-C.<BR/><BR/>Also, messaging is different from method calling because in Objective-C, you won't get an error if you send a message to an object that doesn't implement it, while a Java program won't compile if you call a non-existent method.<BR/><BR/>C++ used the static keyword to create class methods, and Java copied that. But they're really called class methods. I don't know why Objective-C decided to use + and -, but it can't use static because it's a super-set of C.<BR/><BR/>The message style (obj methArg1: a arg2: b) is from Smalltalk, one of the languages Objective-C is based on. I assume they added the [...] around it so it would be separated from the surrounding C code.<BR/><BR/>Sorry to come in and just start spouting my head off, but I figured you might like to have some answers to your questions.<BR/><BR/><A HREF="http://en.wikipedia.org/wiki/Objective_c" REL="nofollow">Objective-C on Wikipedia</A>Chris Bouchardhttps://www.blogger.com/profile/02508142887364813191noreply@blogger.com