Is there any performance benefits of using static typing in Objective-C? Does it exist just for safety check?
Is there any performance benefits of using static typing in Objective-C? Does it exist
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, it’s for safety checks only.
Objective-C messages (method invocations) are always dynamically dispatched at runtime. Adding additional static type information will help the compiler warn you of errors, but (for the most part) has no effect on the code generated. See http://en.wikipedia.org/wiki/Objective-C#Dynamic_typing