[futurebasic] Re: [FB] just a little bit over the line... :+)

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 1999 : Group Archive : Group : All Groups

From: Peter Bancroft <pbancroft@...>
Date: Wed, 20 Oct 1999 05:03:46 +1000
>> it's good that we "never have to use" goto again, certainly.
>> but that doesn't mean i'll never _choose_ to use it...        ;+)
>
>For me, the fact that I don't have to use it insures that I will never
>choose it.

GOTO is very useful when you are _beginning_ to write BASIC programs and
haven't yet mastered the intricacies of CASE, IF...THEN...ELSE or
WHILE...WEND. You need a certain amount of algebra and logical structured
thought to use these, something that most would acquire after about 10
years of age.

However, I have advised people to only use GOTO within the current
routines. Helps easy visual debugging. Stops indecipherable spaghetti code.

Personally, I haven't used a GOTO for years. If you want indecipherable
code try writing in assembler 8) But I'm sure it could be done in C, the
write once read never language.

<Soapbox>
My favourite of all "the structures" is CASE. It is fast and compact. Once
you get the hang of it, you will wonder why you ever used anything else.
</Soapbox>

Peter		mailto:peter@...		http://www.isoma.com