• 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: break, continue, goto
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: break, continue, goto


  • Subject: Re: break, continue, goto
  • From: Stephan Lichtenauer <email@hidden>
  • Date: Mon, 4 Aug 2003 12:04:34 +0200

David,

I think (and that is of course just my personal opinion, although I think it is not too unusual...) you never need a goto. If you need one, you are doing something wrong and you should rethink and reorder your code into an appropriate loop. Some languages even do not offer a goto and they nevertheless work well.

A different matter is break and continue, you definitely need them in a switch and I think there are a lot of algorithms where at least a break also makes sense when programming a loop.

Just my 2c

Stephan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: break, continue, goto
      • From: "Alastair J.Houghton" <email@hidden>
    • Re: break, continue, goto
      • From: Karl Kraft <email@hidden>
References: 
 >break, continue, goto (From: David Thorp <email@hidden>)

  • Prev by Date: Re: format specifiers
  • Next by Date: Re: launching applications within/by cocoa/carbon programs
  • Previous by thread: break, continue, goto
  • Next by thread: Re: break, continue, goto
  • Index(es):
    • Date
    • Thread