Since Objective-C is a dynamic typing language, why do we still need types? Is the reason because it mixes with C code?
Objective-C is not mixed with C, it's a proper superset of C with some dynamic features.
You can avoid the use of static typing on any Objective-C object variable and declare everything as id
, but I don't see why would you want to do that.
You would lose all the help the compiler is giving you thanks to the type information (provided or inferred).
To wrap it up, you don't need types, you want types.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With