• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Proper switching and casing.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Proper switching and casing.
      • From: Greg Parker <email@hidden>
    • Re: Proper switching and casing.
      • From: Alex Zavatone <email@hidden>
References: 
 >Proper switching and casing. (From: Alex Zavatone <email@hidden>)
 >Re: Proper switching and casing. (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Proper switching and casing.
  • Next by Date: Re: Proper switching and casing.
  • Previous by thread: Re: Proper switching and casing.
  • Next by thread: Re: Proper switching and casing.
  • Index(es):
    • Date
    • Thread