@aral The problem is that when you need parameters you usually need to move to alloc] init] pattern again so its usage doesn't worth
-
-
-
@firt Yeah, I don’t see myself using it, to be honest.
End of conversation
New conversation -
-
-
@aral Did you know that it fell out of favour sometime around the mid 90s? :) -
@jtregunna Interestingly, Apple’s included it in their update to the Objective-C programming guide. -
@aral Sure, but very few people actually use it, even though we all know the NARC rules for memory management; New, Alloc, Retain, Copy
End of conversation
New conversation -
-
-
@aral Did you know that at some points in the life of Objective-C, +new was not directly equivalent to alloc-init? -
@BenjaminZAMayo Afaik, new came before initialisers were introduced, didn’t it? -
@aral +new comes from the NeXT days I think. But pre ~2008, +new was not synonymous with alloc-init.
End of conversation
New conversation -
-
-
@aral yes! Any idea why my really old#stackoverflow iOS answers are getting loads of up votes all of a sudden? -
@andiih Perhaps because Apple’s included it in their update to the Objective-C Programming Guide? :) -
@aral have they? Might explain it. I’ve only done dotnet for the last few years so seeing upvotes against iOS 2/3 answers is kinda scary!
End of conversation
New conversation -
-
-
@aral Since it is included in Apple's Programming Guide now, is it considered good practice to use this shorthand?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@aral innit?!Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
RT
@aral: Did you know that [MyClass new] is shorthand for [[MyClass alloc] init]?#objectivecThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@aral probably to make it easier for recovering ex-Java programmers.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@aral …and that you can write it as MyClass.new;? Objective-C and Java are converging, may god have mercy on our souls.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.