On Apr 24, 2014, at 8:21 AM, Roland King <[email protected]> wrote:

> well not if it's actually 
>       x = (x) ?: @"yo";
> but 
>       x = (x) ? x : @yo" ;

No; “a ?: b” is legal syntax in GCC and Clang*. It’s equivalent to “a ? a : b”. 
I don’t think it’s made its way into a C standard yet, but it’s so damn useful 
that I don’t care. :)

—Jens
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to