Re: Function calling
Re: Function calling
- Subject: Re: Function calling
- From: Bob Ippolito <email@hidden>
- Date: Wed, 25 May 2005 17:37:02 -0700
On May 25, 2005, at 5:12 PM, Ondra Cada wrote:
Would strong typing speed things up?
Nope. Strong typing is more or less irrelevant. There are only two
things it is good for:
(a) to check for programmer's mistakes;
(b) to allow for proper argument and return value automatic casting.
Both of them are *completely* compile-time, and (but for them
proper casting of (b)) have no run-time consequence at all.
That's not strictly true, look at Haskell. Of course, that's an
extreme case of strong typing, but when the language is specifically
designed to take advantage of a robust type system, then it becomes
quite useful.
However, strong typing is not very useful for Objective-C. It's too
dynamic for the compiler to be able to make any real assumptions
about what's going to happen at runtime. A good JIT might be able to
eek some more performance out of things, but since it compiles to an
extremely low level representation (machine code) that's not really a
feasible approach any time soon.
-bob
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden