Re: What is the purpose of static typing?
Re: What is the purpose of static typing?
- Subject: Re: What is the purpose of static typing?
- From: Richard Wolf <email@hidden>
- Date: Wed, 24 Jul 2002 20:24:55 -0500
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.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.