Re: Good idea/bad idea?
Re: Good idea/bad idea?
- Subject: Re: Good idea/bad idea?
- From: Andy Lee <email@hidden>
- Date: Thu, 24 Apr 2014 17:30:14 -0400
On Apr 24, 2014, at 5:00 PM, Scott Ribe <email@hidden> wrote:
> What's wrong with the simple straightforward C way???
One improvement might be if there was a ?:= conditional assignment operator. Just as
x += y; is the same as x = x + y;
and likewise for other binary operators, you could have
x ?:= y; be the same as x = x ?: y;
It could be read aloud as "if 0 equals" or "if nil equals", as in "x if nil equals y".
--Andy
_______________________________________________
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