News for hackers. Stuff that matters.
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.

Re:Cargo-cult typing, or: Objective-C's default type is id by mpweiher on Thursday March 06, 2014 @02:21AM (#7352358)
> It has the same signature whether it's an accessor or a behavior,

That turns out not to be the case:

    -(void)behavior;

    -accessor;