The One Thing I Wish ObjC Had

If I were to present the lords of Objective-C with a tribute and ask of them to allow the following syntax, I would gladly do so:

id object = [self loader1] || [self loader2]

Assuming that the loader methods return objects, I want to assign the return value of loader1 if it is not nil, otherwise assign the value of loader2. This syntax is just so damn convenient T_T. As far as I know, JavaScript and Python have it (Yeah, they are scripting languages), but Objective-C is a dynamic language, so it is not far off, you know ..


If there is a website that has feature requests for the Objective-C language, please direct me to it, otherwise let’s start one and press hard.