|
goto | by perldude | 2002-06-11 09:00:28 |
| There are several cases where goto is appropriate. |
by Yohimbe |
2002-06-11 09:19:09 |
For instance:
Exiting a deeply nested if tree or a recursion.
Tricking the compiler into producing better code.
Fast path optimizations.
I can think of a few more even more esoteric ones. |
|
[ Reply ] |
|
The only reason I've ever seen goto's used are... | by Nullmeister | 2002-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 |
|
yes... | by Epiphany0 | 2002-06-11 09:52:44 |
|
Can't blame you | by Schol-R-LEA;2 | 2002-06-11 10:11:54 |
|
yep | by Epiphany0 | 2002-06-11 10:32:29 |
|
There are a few optimizations that are universal.. | by HadEnuf | 2002-06-11 10:36:45 |
|
Yep. KnR said so themselves... | by Tars_Tarkas | 2002-06-11 09:30:33 |
|
in which case... | by Epiphany0 | 2002-06-11 09:36:39 |
|
wouldn't that just be | by sumbusch | 2002-06-11 09:38:50 |
|
not exactly | by Epiphany0 | 2002-06-11 09:44:26 |
|
But how for multiple nested loops? | by Freakazoid | 2002-06-11 09:39:08 |
|
then... | by Epiphany0 | 2002-06-11 09:45:54 |
|
It ultimately obfuscates the structure... | by HadEnuf | 2002-06-11 09:59:44 |
|
Would you call java's exception handling | by Yohimbe | 2002-06-11 10:02:09 |
|
It's at least an incremental improvement... | by HadEnuf | 2002-06-11 10:10:14 |
|
How about continuations? | by Schol-R-LEA;2 | 2006-11-19 12:55:59 |
|
deep nesting | by perldude | 2002-06-11 09:48:00 |
|
Won't work for ***NESTED*** loops | by HadEnuf | 2002-06-11 09:50:01 |
|
I'll C you in Heck! | by perldude | 2002-06-11 09:57:17 |
|
<Deleted> | <Deleted> | 2003-10-23 17:58:32 |
|
I guess I'm chicken too (n/t) | by nawft | 2002-06-11 13:18:52 |
|
Too late! | by Naruki | 2002-06-11 13:24:49 |
|
actually | by nawft | 2002-06-11 13:30:22 |
|
Don't worry about Nea getting mad... | by Naruki | 2002-06-11 16:59:05 |
|
I still get mad | by Nea | 2002-06-11 17:25:51 |
|
Naughty naughty. | by Naruki | 2002-06-11 19:05:05 |
|
I thought it was well established... | by Nea | 2002-06-11 20:15:23 |
|
I don't think I can be a dawn greeter | by nawft | 2002-06-11 23:22:54 |
|
Nah, Phil[1] and I don't get along! | by HadEnuf | 2002-06-11 10:11:36 |
|
already been covered (n/t) | by Epiphany0 | 2002-06-11 10:00:15 |
|
nested structures | by perldude | 2002-06-11 09:31:02 |
|
What do you think a break statement IS? | by Naruki | 2002-06-11 09:39:08 |
|
under the covers | by perldude | 2002-06-11 09:45:20 |
|
AMEN. (n/t) | by Epiphany0 | 2002-06-11 09:48:37 |
|
AWOMEN and ATHINGS. (n/t) | by bugarup | 2002-06-11 10:11:31 |
|
Well, assembly and machine code have no while() | by Yohimbe | 2002-06-11 09:54:28 |
|
Actually, I doubt that "Dijkstra hates him"... | by HadEnuf | 2002-06-11 10:22:58 |
|
Dijkstra would have killed Duff on the spot (n/t) | by Yohimbe | 2002-06-11 10:25:12 |
|
Think he would have been more justified... | by HadEnuf | 2002-06-11 10:27:18 |
|
*ow my brains* | by i_am_pi | 2006-11-19 12:55:59 |
|
Why, hello, Mr. Gumby! (n/t) | by HadEnuf | 2002-06-11 11:03:02 |
|
hmmmm | by Epiphany0 | 2002-06-11 09:32:24 |
|
Not "tree", or "recursion", but "loop"! | by HadEnuf | 2002-06-11 10:04:42 |
|
<Deleted> | <Deleted> | 2003-10-23 17:58:32 |
|
Actually, more likely 64 *digits*. | by HadEnuf | 2002-06-11 10:25:28 |
|
damn. | by Yohimbe | 2002-06-11 10:27:06 |
|
Yup. (n/t) | by HadEnuf | 2002-06-11 10:27:55 |
|
I belive the technical term is "Poo poo" | by dire_lobo | 2002-06-11 10:35:42 |
|
(un)Civil Engineers who work on sewer systems... | by HadEnuf | 2002-06-11 10:39:30 |
|
I know that is obfuscated | by nawft | 2002-06-11 12:55:16 |
|
Exactly! | by Naruki | 2002-06-11 13:12:04 |
|
whether the rule makes sense or not I shall not sa | by nawft | 2002-06-11 13:26:42 |
|
Covering up ALL letters | by pin0cchio | 2002-06-11 20:58:03 |
|
We would prefer if you don't | by Nea | 2006-11-19 12:55:59 |
|
Correct you are... | by dire_lobo | 2002-06-11 23:08:26 |
|
I'll admit it, I'm chicken | by Nea | 2002-06-11 10:53:04 |
|
*snicker* | by Naruki | 2002-06-11 10:54:11 |
|
In OpenVMS | by nimdokk | 2002-06-11 15:00:40 |