At 09:14 AM 10/24/2004 +0800, Yin Ming writeth:
>And don't use goto, it's root of devils. Your code is a typical while
>loop:

I use goto every once in a while.  There are situations where using one
helps code readability and/or maintainability and can occassionally help
performance, but you have to know what you are doing to know when those
situations are appropriate - and documenting why a goto is used is
particularly helpful.  For new programmers like the OP, goto is not the
right way to do things.  Use a while or for-loop instead (depending on the
situation).


Thomas J. Hruska
[EMAIL PROTECTED]

Shining Light Productions
Home of the Nuclear Vision scripting language and ProtoNova web server.
http://www.slproweb.com/





To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.


Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=294855.5468653.6549235.3001176/D=groups/S=:HM/A=2376776/rand=586181278


Yahoo! Groups Links

Reply via email to