Re: Good idea/bad idea?
Re: Good idea/bad idea?
- Subject: Re: Good idea/bad idea?
- From: Jens Alfke <email@hidden>
- Date: Thu, 24 Apr 2014 09:48:01 -0700
On Apr 24, 2014, at 8:21 AM, Roland King <email@hidden> 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@hidden)
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:
This email sent to email@hidden