News for hackers. Stuff that matters.
Re:In defence of Objective-C by freemarketteddy on Monday October 17, 2011 @03:13AM (#3119500)
Yes..arrayWithObjects is definitely a better choice in this case...I was just trying to point out what exactly a line like object = [[[MyClass alloc] initWithObjects:@"",...] autorelease] means...and why it is more powerful than writing object = @"",@"",@"",.

Although the latter approach can be taken by using macros ,I was making an argument for the beauty of the first approach.For example it would not be possible to allocate a singleton object with a line like that in Python.

There are no comments on this comment yet.