FROM : Shawn Erickson
DATE : Sat Jul 08 02:41:07 2006
On 7/7/06, Rob Ross <<email_removed>> wrote:
> I'm just learning Obj-C myself, so maybe my understanding is not
> correct. But, don't you actually have the option to use static typing
> in certain instances, and use dynamic typing in others?
>
> Eg:
>
> id myStr;
>
> vs
>
> NSString *myStr;
>
> Won't the second version give you the benefits of static typing
> (compiler time checking)?
>
> So my understanding is you can have the best of both worlds. Or have
> I misunderstood something?
Correct.
-Shawn
DATE : Sat Jul 08 02:41:07 2006
On 7/7/06, Rob Ross <<email_removed>> wrote:
> I'm just learning Obj-C myself, so maybe my understanding is not
> correct. But, don't you actually have the option to use static typing
> in certain instances, and use dynamic typing in others?
>
> Eg:
>
> id myStr;
>
> vs
>
> NSString *myStr;
>
> Won't the second version give you the benefits of static typing
> (compiler time checking)?
>
> So my understanding is you can have the best of both worlds. Or have
> I misunderstood something?
Correct.
-Shawn






Cocoa mail archive

