Walt Mankowski on Fri, 28 Jul 2000 21:39:02 -0400 (EDT)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] 'goto' in C code


On Fri, Jul 28, 2000 at 07:24:02PM -0400, Earl J. Morris wrote:
>   Excessive use of the "goto" could make code hard to follow and the logic
> difficult to see. However, if used with care, it can make the code very
> efficient. As an example; use a "switch()" instead of multiple "if() goto"
> statements.

Grep for "goto" sometime through the Linux source tree.  If Linus uses
them, they can't be all bad, right?

Walt


______________________________________________________________________
Philadelphia Linux Users Group       -       http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion   -   http://lists.phillylinux.org/mail/listinfo/plug