3 ms·
I'm going to have to start referring to this post when I explain why I like objective c. Usually people just give me this crazy stare like I'm some kind of moro
by RandallBrown 15y ago
I'm going to have to start referring to this post when I explain why I like objective c. Usually people just give me this crazy stare like I'm some kind of moron.
One thing though, if you spell a method name wrong, it will still compile. It's only a warning that "the object may not respond to that selector". Of course if you have warnings as errors turned on, then of course it will error.
- kentnguyen 15y agoi guess im abit overboard trying to make my point. but you are right, no error, just warnings.
- masklinn 15y ago> One thing though, if you spell a method name wrong, it will still compile. It's only a warning that "the object may not respond to that selector". And it's important to understand that: while Objective-C's "C" part is statically typed, Objective-C's objective model comes from Smalltalk and remains essentially dynamically typed. That's in fact what `id` is: a purely dynamic type. This is quite unlike Java or OCaml.