in reply to Re: Go to?
in thread Go to?
Making blanket statements that goto is evil suffers from the dangers of Cargo Cultism.
This is not to say that there isn't wisdom encapsulated there, but if it's learned behavior by ROTE rather than comprehension then the inherent wisdom is lost.
goto, like a gun - isn't evil. It's what you do with it that counts.
I'll not belabor the point already stated clearly by others.
That being said - I haven't had a reason to use goto in perl personally. I'm intrigued by the prospect and I want to know more.
That being said - I don't know if the OP has clearly stated what that reason is in his case. Rather they've been focusing on fending off the initial kneejerk reaction. That reaction however should have been expected.
I don't see that it's necessarily wrong to question the motivation behind the choice however, since it's something that cuts against the grain of the party line concerning 'structured programming'. What I mean by that is simply that for those of us who started programming with a flavor of BASIC and then moved on to other languages, or who took an academic journey to become programmers - we have been taught that using goto is usually a sign that you're doing something 'wrong'. If nothing else it's a sign that you should be thinking about what you're doing very carefully - and the OP is clearly doing that.
Ronnie can you please elaborate on the subject?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Go to?
by McDarren (Abbot) on Apr 06, 2006 at 03:00 UTC | |
by hawtin (Prior) on Apr 06, 2006 at 08:37 UTC | |
by diotalevi (Canon) on Apr 11, 2006 at 12:07 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |