Re:Cargo-cult typing, or: Objective-C's default type is id
by vor_ on Wednesday March 05, 2014 @07:27PM
(#7350994)
> -foo would just as definitively indicate that it returns an object. The return type defaults to id, not void.
How would it definitely indicate that it returns an object? It has the same signature whether it's an accessor or a behavior, so you don't know if the implementation is returning an object.
How would it definitely indicate that it returns an object? It has the same signature whether it's an accessor or a behavior, so you don't know if the implementation is returning an object.