News for hackers. Stuff that matters.
Re:Show HN: NSString + Ruby by mikeash on Thursday October 10, 2013 @08:05PM (#6530796)
Here's a crazy idea:

    newstr = [@"%d %@" format 42, @"blah"];
Implement it as a method that takes a dummy parameter, plus a macro:

    - (NSString *)format:(int)dummy, ...
    #define format format:0,
Awful way to do it, but the resulting syntax is not entirely terrible.
Re:Show HN: NSString + Ruby by thingsdoer on Thursday October 10, 2013 @08:37PM (#6530885)
I'm not super comfortable with breaking message syntax like that. Also, very wary of using a #define with a short oft used keyword in a library that will be imported in majority of headers.