Subject:
|
RE: Are there GOTO statements in NQC?
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Thu, 20 Nov 2003 18:28:50 GMT
|
Reply-To:
|
<rhempel@bmts.com{nomorespam}>
|
Viewed:
|
981 times
|
| |
| |
> I'm probably in the minority here, but I'm going to come right out and say that
> goto's are not a bad thing, contrary to popular belief...
<snipped rant>
> There. Sorry for the rant, but this is one of my pet peeves.
And as a longtime embedded guy myself, I agree with Mark. It's the old
sharp tools and dull craftsman thing.
In the hands of a practiced expert, the goto can be a thing of beauty
and can make the code more readable, which is what we all want if we
ever need to figure out the code.
I'm guessing you have a similar view on the statement:
"A function should have one and only one exit point" :-)
Ralph
|
|
Message has 2 Replies: | | Re: Are there GOTO statements in NQC?
|
| (...) In NQC, it is necessary to be especially careful about the use of goto as Dave writes in the NQC Guide: The goto statement should be used sparingly and cautiously. In almost every case, control structures such as if, while, and switch make a (...) (21 years ago, 20-Nov-03, to lugnet.robotics)
|
Message is in Reply To:
| | Re: Are there GOTO statements in NQC?
|
| (...) I'm probably in the minority here, but I'm going to come right out and say that goto's are not a bad thing, contrary to popular belief. In fact, I find it rather pompous when I come across admonishments in textbooks that there is no valid (...) (21 years ago, 20-Nov-03, to lugnet.robotics)
|
19 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|