@aral I'm still of the opinion of using id for init method, but that's purely stylistic. All factory methods should use instancetype though
-
-
-
@pilky From what I’ve read, the compiler converts id to instancetype. I like the idea of remaining consistent & being explicit :)
End of conversation
New conversation -
-
-
@aral The other thing that needs mentioning is that in factory methods you really should do [self alloc] vs [MYClass alloc] -
@pilky Oh yes—the latter is very naughty :) -
@aral To a degree, sometimes you need it. The problem is, many newer devs don't realise you can use self in class methods, nor what it means
End of conversation
New conversation -
-
-
@aral I did not know all that. Thanks! -
@arepty It looks like Apple has started implementing it in the frameworks (check the latest diffs) :) - 1 more reply
New conversation -
-
-
@aral Interesting!Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.