4 ms·
Compilation does not necessarily need to remove the dynamism. Objective-C is generally considered a dynamic language, though I get the feeling that many think
by randomdata 14y ago
Compilation does not necessarily need to remove the dynamism. Objective-C is generally considered a dynamic language, though I get the feeling that many think it is just another C++ with different syntax, which muddies the waters, so to speak.
A quote from Apple themselves:
"Compared to other object-oriented languages based on C, Objective-C is very dynamic. The compiler preserves a great deal of information about the objects themselves for use at runtime. Decisions that otherwise might be made at compile time can be postponed until the program is running. Dynamism gives Objective-C programs unusual flexibility and power."
https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/OOP_ObjC/OOP_ObjC.pdf https://developer.apple.com/library/mac/documentation/Cocoa/...