• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Function calling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Function calling (From: "Theodore H. Smith" <email@hidden>)
 >Re: Function calling (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: NSTreeController question
  • Next by Date: Getting the default responder in the chain
  • Previous by thread: Re: Function calling
  • Next by thread: Re: Function calling
  • Index(es):
    • Date
    • Thread