Re: Proper switching and casing.
Re: Proper switching and casing.
- Subject: Re: Proper switching and casing.
- From: Alex Zavatone <email@hidden>
- Date: Fri, 10 Apr 2015 06:39:53 -0400
In our case, we have code with blocks where we have a case and then empty parenthesis, indicating that they wanted to do something, but just have the parens as a placeholder.
There are other cases (reachability) where we have fall through case statements that do look like they are intended to operate this way.
It's hard to tell if these were done intentionally or not. And without comments, it's all nice and vague.
On Apr 10, 2015, at 12:25 AM, Steve Mills wrote:
> On Apr 9, 2015, at 22:43:23, Scott Ribe <email@hidden> wrote:
>>
>> Yes, actually. It's not that common, of course. I bet in all the code I've ever written, I've done it a half-dozen times.
>
> I took me less than 10 seconds to do a multi-file search through a large project and find plenty of examples of this. It's plenty common.
>
> --
> Steve Mills
> Drummer, Mac geek
>
>
> _______________________________________________
>
> 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
_______________________________________________
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