Re: Proper switching and casing.
Re: Proper switching and casing.
- Subject: Re: Proper switching and casing.
- From: Sean McBride <email@hidden>
- Date: Thu, 09 Apr 2015 17:10:20 -0400
- Organization: Rogue Research Inc.
On Thu, 9 Apr 2015 17:05:57 -0400, Alex Zavatone said:
>Sorry that I sent this before the main observation.
>
>Considering the implications of this, should Xcode's compiler flag these
>"unbreak-ed case statements" with a warning? Currently, it doesn't do that.
-Wimplict-fallthrough
>Is there any reasonable case where you'd want a case condition to not
>have a break statement after it?
Yes, but not often IMHO.
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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