Tuesday, October 7, 2008

Objective-C . WTF? (Part II)

Who decided that this...

NSLog(@"Where is %@ hiding?", myVariable);

...was better than this?

NSLog("Where is $myVariable hiding?");

(NOTE: Hey! Dont complain about wanting a dollar sign in your string! Use a back slash! And dont tell me there isnt a better workaround for that first @ symbol...)

No comments: