] break statement usage
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Erik Price blurted
So what I'm wondering is,
Is it bad coding practice to make heavy use of break statements in
switch() flow control?
That's exactly the point of the break statement, it was designed
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then DL Neil blurted
Private note: heard the one about throwing stones and living in glass houses?
tip
Try to keep your posts a little shorter
if only for the sake of the dialup users ;)
/tip
this said by someone who:
Good day,
Actually, using the break statement is the accepted, proper way to break
out of a switch statement, just as it is in other programming languages.
And yes, the break statement can be used to terminate other loops, such as
while and for, just like in other languages. Using it there is
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Erik Price blurted
So what I'm wondering is,
Is it bad coding practice to make heavy use of break statements in
switch() flow control?
That's exactly the point of the break statement, it was designed to be
used in a switch
On Friday, January 25, 2002, at 04:24 PM, Nick Wilson wrote:
tip
Try to keep your posts a little shorter
if only for the sake of the dialup users ;)
/tip
Thanks for the tip, but I find that a more verbose message makes
explicit what I am asking. How many times have you seen I
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Erik Price blurted
On Friday, January 25, 2002, at 04:24 PM, Nick Wilson wrote:
tip
Try to keep your posts a little shorter
if only for the sake of the dial-up users ;)
/tip
Do you suggest this tip whenever someone
6 matches
Mail list logo