Re:I loved C. But it always fell short for me. Objective-C f...
by ramitos on Monday November 07, 2011 @09:03AM
(#3206244)
I've only coded a (really) simple app in Obj-c, but disliked the syntax.
[ Parent
| on HN ]
Re:I loved C. But it always fell short for me. Objective-C f...
by beej71 on Monday November 07, 2011 @11:36AM
(#3206936)
Now, I've coded a lot of stuff in Objective C for iOS, and it works just fine, and I actually think it's a pretty good language. I'm glad that Apple has helped bring it more into the spotlight.
But ramitos is right; it really is a Frankensteinian bolt-on addition of Smalltalk, syntax-wise. The message passing code simply does not look like C.
That said, I'd encourage everyone to give it a chance. I, too, had a negative reaction to it when I first encountered it ("It's so ugly!") but you get used to it, and then it's fine.
Re:I loved C. But it always fell short for me. Objective-C f...
by msbarnett on Monday November 07, 2011 @06:58PM
(#3208771)
> The message passing code simply does not look like C.
Arguably that's a very good thing, because passing a message has very different semantics from calling a function. Making the syntaxes of these operations identical would encourage a lot of confusion between two very different operations.