The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

goto by perldude2002-06-11 09:00:28
  There are several cases where goto is appropriate. by Yohimbe2002-06-11 09:19:09
    The only reason I've ever seen goto's used are... by Nullmeister2002-06-11 09:30:22
      Well, yes, that's the most common case... (n/t) by Schol-R-LEA;2 2002-06-11 09:48:17
And usually getting into a position to need a goto is usually a sign that you need to reconsider the design. But as Yohimbe said, there are a handful of cases where it is justifiable. Also, keep in mind, whatever construct you're using, when you get down to machine code, all loops and conditions are done through jumps. (Pedantic Note: OK, so some assembly languages have special-purpose iterating constructs (e.g., the x86 LOOP[Z|NZ|E|NE] and REP[Z|NZ|E|NE] instructions), but they often are slower than the equivalent conditional jumps, and are rarely used. Compilers in particular avoid such constructs as they require extra code to recognize the special cases where they apply, which is generally not worth the compiler designers' effort to handle as they can be implemented in more general ways more easily and with considerable gain in compiling speed.)
[ Reply ]
        yes... by Epiphany02002-06-11 09:52:44
          Can't blame you by Schol-R-LEA;22002-06-11 10:11:54
            yep by Epiphany02002-06-11 10:32:29
              There are a few optimizations that are universal.. by HadEnuf2002-06-11 10:36:45

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)