| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Additionally, as a rule of thumb, the more dynamic typing you use, the
more sluggish your user experience will become.
Whoa ... unless I'm reading my Objective C manual and misunderstanding it,
there -can't- be any -runtime- difference between objects statically and dynamically typed in source because all methods are dynamically bound to objects at runtime.
The way I read that,
NSTextField *tf;
...
[ tf setStringValue: @"Some string" ];
and
id tf;
...
[ tf setStringValue: @"Some string" ];
are equally efficient and there is no way that one could be more efficient than the other.
To the runtime, they are supposed to be exactly the same, right? Or, am I not reading the books correctly? I speak as a newbie.
| References: | |
| >Re: What is the purpose of static typing? (From: Richard Wolf <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.