LLVM 3.1 released
llvm.org
llvm.org
NSString *s = [NSString stringWithCString:"hello" encoding:NSUTF8StringEncoding];
NSString *s = @("hello");
it's 11 characters vs 67. Now what I really, really miss is the implementation of the NSString concatenation operator. stringWithFormat isn't always the answer nor appendString. Please forgive me if you find that my idea is silly: // String concatenation
NSString *s = @+(@"hello ", @"world");
Or maybe some concise dictionary operators. NSDictionary *d1 = @{ @"first":@"Hello", @("second"):@"World" };
NSDictionary *d2 = @{ @"third":@"Greetings" };
NSDictionary *cd = @|(d1, d2); // Dictionary merge
NSDictionary *id = @&(d1, d2); // Dictionary intersect
NSDictionary *dd = @^(d1, d2); // Dictionary differenceAlso: dictionary merge/intersect/difference aren't easily defined. For example, what should
@&( @{ @"a":@"aye", @"b":@"bee" }, @{ @"a":@"ai ai", @"Bee":@"bee" })
return?Any idea how long it has historically taken apple to move the newer Clang releases?